Ejemplo n.º 1
0
 public TestFile createZip(Object path) {
   Zip zip = new Zip();
   zip.setWhenempty((Zip.WhenEmpty) Zip.WhenEmpty.getInstance(Zip.WhenEmpty.class, "create"));
   TestFile zipFile = file(path);
   zip.setDestFile(zipFile);
   zip.setBasedir(this);
   zip.setExcludes("**");
   execute(zip);
   return zipFile;
 }
 protected Zip createTask() {
   String version = Main.getAntVersion();
   Jar task;
   if (version != null && (version.indexOf("1.8.0") != -1 || version.indexOf("1.8.1") != -1)) {
     task = new PatchedJar();
   } else {
     task = new Jar();
   }
   task.setTaskName("jar");
   task.setWhenmanifestonly(
       (Zip.WhenEmpty) Zip.WhenEmpty.getInstance(Zip.WhenEmpty.class, "skip"));
   return task;
 }