private static File buildJar2() throws FileNotFoundException, IOException { JarBuilder jar2Builder = new JarBuilder(tmpFolder, "jar2.jar"); jar2Builder.addResourceFile("com/jar2/resource.file", "jar2"); jar2Builder.addResourceFile("com/test/resource2.file", "resource2"); return jar2Builder.build(); }
private static File buildJar3() throws FileNotFoundException, IOException { JarBuilder jar3Builder = new JarBuilder(tmpFolder, "jar3.jar"); jar3Builder.addResourceFile("com/test/resource3.file", "resource3"); jar3Builder.addResourceFile("com/missing/jar3/resource.file", "jar3"); return jar3Builder.build(); }