Home
last modified time | relevance | path

Searched refs:jarFile (Results 1 – 16 of 16) sorted by relevance

/external/guava/guava-tests/test/com/google/common/reflect/
DClassPathTest.java233 File jarFile = File.createTempFile("with_circular_class_path", ".jar"); in testScan_classPathCycle() local
235 writeSelfReferencingJarFile(jarFile, "test.txt"); in testScan_classPathCycle()
237 scanner.scan(jarFile.toURI(), ClassPathTest.class.getClassLoader()); in testScan_classPathCycle()
240 jarFile.delete(); in testScan_classPathCycle()
280 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_noClassPath() local
281 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifest(""))) in testGetClassPathFromManifest_noClassPath()
286 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_emptyClassPath() local
287 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifestClasspath(""))) in testGetClassPathFromManifest_emptyClassPath()
292 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_badClassPath() local
294 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifest)) in testGetClassPathFromManifest_badClassPath()
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DJarFinder.java142 JarFile jarFile; in scanJar() local
144 jarFile = new JarFile(file); in scanJar()
151 for (URI uri : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar()
156 jarFile.close(); in scanJar()
169 File jarFile, @Nullable Manifest manifest) { in getClassPathFromManifest() argument
180 uri = getClassPathEntry(jarFile, path); in getClassPathFromManifest()
199 @VisibleForTesting static URI getClassPathEntry(File jarFile, String path) in getClassPathEntry() argument
204 : new File(jarFile.getParentFile(), path.replace('/', File.separatorChar)).toURI(); in getClassPathEntry()
DAllocationInstrument.java178 JarFile jarFile = null; in findAllocationInstrumentJarOnClasspath() local
180 jarFile = new JarFile(file); in findAllocationInstrumentJarOnClasspath()
181 Manifest manifest = jarFile.getManifest(); in findAllocationInstrumentJarOnClasspath()
188 if (jarFile != null) { in findAllocationInstrumentJarOnClasspath()
189 jarFile.close(); in findAllocationInstrumentJarOnClasspath()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DCompatibilityTest.java169 JarFile jarFile = null; in getJarList() local
178 jarFile = conn.getJarFile(); in getJarList()
179 Enumeration entries = jarFile.entries(); in getJarList()
187 … SerializableTestUtility.copyStreamBytes(jarFile.getInputStream(entry))); in getJarList()
194 if (jarFile != null) { in getJarList()
195 jarFile.close(); in getJarList()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DCompatibilityTest.java168 JarFile jarFile = null; in getJarList() local
177 jarFile = conn.getJarFile(); in getJarList()
178 Enumeration entries = jarFile.entries(); in getJarList()
186 … SerializableTestUtility.copyStreamBytes(jarFile.getInputStream(entry))); in getJarList()
193 if (jarFile != null) { in getJarList()
194 jarFile.close(); in getJarList()
/external/guava/guava/src/com/google/common/reflect/
DClassPath.java367 JarFile jarFile; in scanJar() local
369 jarFile = new JarFile(file); in scanJar()
375 for (URI uri : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar()
378 Enumeration<JarEntry> entries = jarFile.entries(); in scanJar()
388 jarFile.close(); in scanJar()
400 File jarFile, @Nullable Manifest manifest) { in getClassPathFromManifest() argument
411 uri = getClassPathEntry(jarFile, path); in getClassPathFromManifest()
429 @VisibleForTesting static URI getClassPathEntry(File jarFile, String path) in getClassPathEntry() argument
435 return new File(jarFile.getParentFile(), path.replace('/', File.separatorChar)).toURI(); in getClassPathEntry()
/external/objenesis/tck/src/main/java/org/objenesis/tck/search/
DClassEnumerator.java59 JarFile jarFile; in processJarfile() local
61 jarFile = new JarFile(jarPath); in processJarfile()
65 Enumeration<JarEntry> entries = jarFile.entries(); in processJarfile()
/external/r8/src/test/java/com/android/tools/r8/utils/
DJarBuilder.java17 public static void buildJar(File[] files, File jarFile) throws IOException { in buildJar() argument
18 JarOutputStream target = new JarOutputStream(new FileOutputStream(jarFile)); in buildJar()
/external/testng/src/test/java/test/jarpackages/
DJarPackagesTest.java13 private TestListenerAdapter init(String jarFile) { in init() argument
19 String finalPath = path + jarFile; in init()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DURLHandler.java192 JarFile jarFile; field in URLHandler.JarURLHandler
217 jarFile = conn.getJarFile(); in JarURLHandler()
228 Enumeration<JarEntry> entries = jarFile.entries(); in guide()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DURLHandler.java196 JarFile jarFile; field in URLHandler.JarURLHandler
221 jarFile = conn.getJarFile(); in JarURLHandler()
232 Enumeration<JarEntry> entries = jarFile.entries(); in guide()
/external/r8/src/test/java/com/android/tools/r8/rewrite/longcompare/
DRequireNonNullRewriteTest.java45 void runTest(Path jarFile, Path dexFile) { in runTest() argument
53 .runJava(ImmutableList.of(jarFile.toString()), mainClass); in runTest()
/external/vogar/src/vogar/
DClassFileIndex.java157 JarFile jarFile = new JarFile(file);
158 for (Enumeration<JarEntry> e = jarFile.entries(); e.hasMoreElements(); ) {
/external/vogar/src/vogar/target/
DClassPathScanner.java163 private Set<String> getJarEntries(File jarFile) throws IOException { in getJarEntries() argument
165 ZipFile zipFile = new ZipFile(jarFile); in getJarEntries()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DURLClassLoaderTest.java504 JarFile jarFile = new JarFile(resources.getAbsolutePath() + "/JarIndex/hyts_11.jar"); in test_findClassLjava_lang_String_Jar_Class_Path() local
505 Manifest mf = jarFile.getManifest(); in test_findClassLjava_lang_String_Jar_Class_Path()
/external/testng/src/main/java/org/testng/
DTestNG.java349 File jarFile = new File(m_jarPath); in initializeSuitesAndJarFile() local
353 Utils.log("TestNG", 2, "Trying to open jar file:" + jarFile); in initializeSuitesAndJarFile()
357 try (JarFile jf = new JarFile(jarFile)) { in initializeSuitesAndJarFile()