我在我的 gradle 构建中看到它在构建开始时进行了一些初始化。例如:
:compileJava
[search path for source files: ..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt\14.0.1\jar\de1f56fc5149d9e80c0e5107493370db2fa2d5e9\guava-gwt-14.0.1.jar,..\.gradle\caches\artifacts-24\filestore\com.google.code.findbugs\jsr305\1.3.9\jar\40719ea6961c0cb6afaeb6a921eaa1f6afd4cfdf\jsr305-1.3.9.jar,..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava\14.0.1\bundle\69e12f4c6aeac392555f1ea86fab82b5e5e31ad4\guava-14.0.1.jar]
[search path for class files: C:\Program Files\Java\jdk1.7.0_07\jre\lib\resources.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\rt.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\sunrsasign.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\jsse.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\jce.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\charsets.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\jfr.jar,C:\Program Files\Java\jdk1.7.0_07\jre\classes,C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\access-bridge.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\dnsns.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\jaccess.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\localedata.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\sunec.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\sunjce_provider.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\sunmscapi.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\sunpkcs11.jar,C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\zipfs.jar,..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt\14.0.1\jar\de1f56fc5149d9e80c0e5107493370db2fa2d5e9\guava-gwt-14.0.1.jar,..\.gradle\caches\artifacts-24\filestore\com.google.code.findbugs\jsr305\1.3.9\jar\40719ea6961c0cb6afaeb6a921eaa1f6afd4cfdf\jsr305-1.3.9.jar,..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava\14.0.1\bundle\69e12f4c6aeac392555f1ea86fab82b5e5e31ad4\guava-14.0.1.jar]
[loading ZipFileIndexFileObject[..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt\14.0.1\jar\de1f56fc5149d9e80c0e5107493370db2fa2d5e9\guava-gwt-14.0.1.jar(com/google/common/base/Optional.java)]]
[parsing started ZipFileIndexFileObject[..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt\14.0.1\jar\de1f56fc5149d9e80c0e5107493370db2fa2d5e9\guava-gwt-14.0.1.jar(com/google/common/base/Optional.java)]]
[parsing completed 0ms]
[loading ZipFileIndexFileObject[..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt\14.0.1\jar\de1f56fc5149d9e80c0e5107493370db2fa2d5e9\guava-gwt-14.0.1.jar(com/google/common/collect/AbstractIterator.java)]]
[parsing started ZipFileIndexFileObject[..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt\14.0.1\jar\de1f56fc5149d9e80c0e5107493370db2fa2d5e9\guava-gwt-14.0.1.jar(com/google/common/collect/AbstractIterator.java)]]
[parsing completed 0ms]
[loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.7.0_07\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Object.class)]]
[loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.7.0_07\lib\ct.sym(META-INF/sym/rt.jar/java/lang/String.class)]]
[loading ZipFileIndexFileObject[..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt\14.0.1\jar\de1f56fc5149d9e80c0e5107493370db2fa2d5e9\guava-gwt-14.0.1.jar(com/google/common/base/Preconditions.java)]]
[parsing started ZipFileIndexFileObject[..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt\14.0.1\jar\de1f56fc5149d9e80c0e5107493370db2fa2d5e9\guava-gwt-14.0.1.jar(com/google/common/base/Preconditions.java)]]
[parsing completed 134ms]
[loading ZipFileIndexFileObject[..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt\14.0.1\jar\de1f56fc5149d9e80c0e5107493370db2fa2d5e9\guava-gwt-14.0.1.jar(com/google/common/annotations/GwtCompatible.java)]]
[parsing started ZipFileIndexFileObject[..\.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt\14.0.1\jar\de1f56fc5149d9e80c0e5107493370db2fa2d5e9\guava-gwt-14.0.1.jar(com/google/common/annotations/GwtCompatible.java)]]
[parsing completed 0ms]
为什么 gradle 解析类路径(jar)中的源文件?以及如何防止这种情况?