FAQ
Author: markt
Date: Thu Oct 30 10:00:20 2014
New Revision: 1635444

URL: http://svn.apache.org/r1635444
Log:
Use getters. No functional change.

Modified:
     tomcat/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java?rev=1635444&r1=1635443&r2=1635444&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/scan/StandardJarScanner.java Thu Oct 30 10:00:20 2014
@@ -146,7 +146,7 @@ public class StandardJarScanner implemen
              while (it.hasNext()) {
                  String path = it.next();
                  if (path.endsWith(Constants.JAR_EXT) &&
- jarScanFilter.check(scanType,
+ getJarScanFilter().check(scanType,
                                  path.substring(path.lastIndexOf('/')+1))) {
                      // Need to scan this JAR
                      if (log.isDebugEnabled()) {
@@ -168,7 +168,7 @@ public class StandardJarScanner implemen
          }

          // Scan WEB-INF/classes
- if (scanAllDirectories) {
+ if (isScanAllDirectories()) {
              try {
                  URL url = context.getResource("/WEB-INF/classes/META-INF");
                  if (url != null) {
@@ -184,13 +184,13 @@ public class StandardJarScanner implemen
          }

          // Scan the classpath
- if (scanClassPath) {
+ if (isScanClassPath()) {
              if (log.isTraceEnabled()) {
                  log.trace(sm.getString("jarScan.classloaderStart"));
              }

              ClassLoader stopLoader = null;
- if (!scanBootstrapClassPath) {
+ if (!isScanBootstrapClassPath()) {
                  // Stop when we reach the bootstrap class loader
                  stopLoader = ClassLoader.getSystemClassLoader().getParent();
              }
@@ -217,7 +217,7 @@ public class StandardJarScanner implemen
                          if ((cpe.isJar() ||
                                  scanType == JarScanType.PLUGGABILITY ||
                                  isScanAllDirectories()) &&
- jarScanFilter.check(scanType,
+ getJarScanFilter().check(scanType,
                                                  cpe.getName())) {
                              if (log.isDebugEnabled()) {
                                  log.debug(sm.getString(
@@ -299,7 +299,7 @@ public class StandardJarScanner implemen
                      File f;
                      try {
                          f = new File(url.toURI());
- if (f.isFile() && scanAllFiles) {
+ if (f.isFile() && isScanAllFiles()) {
                              // Treat this file as a JAR
                              URL jarURL = new URL("jar:" + urlStr + "!/");
                              callback.scan(



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupdev @
categoriestomcat
postedOct 30, '14 at 10:02a
activeOct 30, '14 at 10:02a
posts1
users1
websitetomcat.apache.org
irc#tomcat

1 user in discussion

Markt: 1 post

People

Translate

site design / logo © 2017 Grokbase