Lines Matching defs:jar

71  * 2) Build three jar files a.jar, b.jar, c.jar
73 * 3) Create an index in a.jar (jar -i a.jar b.jar c.jar)
82 * Note: Needs jdk/lib/tools.jar in the classpath to compile and run.
102 // Set global url cache to false so that we can track every jar request.
129 /* build the 3 jar files */
130 jar("-cf", testClassesDir + slash + "a.jar",
134 jar("-cf", testClassesDir + slash + "b.jar",
137 jar("-cf", testClassesDir + slash + "c.jar",
141 /* Create an index in a.jar for b.jar and c.jar */
145 /* run jar <args> */
146 static void jar(String... args) {
147 debug("Running: jar " + Arrays.toString(args));
148 sun.tools.jar.Main jar = new sun.tools.jar.Main(System.out, System.err, "jar");
149 if (!jar.run(args)) {
150 throw new RuntimeException("jar failed: args=" + Arrays.toString(args));
163 static String jar;
172 jar = javaHome + slash+ "bin" + slash + "jar";
179 debug("Running jar to create the index");
181 jar, "-J-Dsun.misc.JarIndex.metaInfFilenames=true", "-i", "a.jar", "b.jar", "c.jar");
187 throw new RuntimeException("jar indexing failed");
207 /* service define in c.jar */
283 debug("Unexpeced request sent to the httpserver for b.jar");
287 debug("Unexpeced request sent to the httpserver for c.jar");
325 debug("Unexpeced request sent to the httpserver for b.jar");
329 debug("Unexpeced request sent to the httpserver for c.jar");
365 debug("Unexpeced request sent to the httpserver for b.jar");
369 debug("Unexpeced request sent to the httpserver for c.jar");
383 new URL(baseURL, "a.jar"),
384 new URL(baseURL, "b.jar"),
385 new URL(baseURL, "c.jar")}, loader );
389 * HTTP Server to server the jar files.
432 if (path.endsWith("a.jar"))
434 else if (path.endsWith("b.jar"))
436 else if (path.endsWith("c.jar"))