Ejemplo n.º 1
0
  public static void main(String[] args) throws Exception {
    makeBuildXml("build.xml");

    // final Set<Permission> permissions = new HashSet<Permission>();
    //        SecurityManagerListener l = new SecurityManagerListener()
    //        {
    //
    //            public boolean checkPermission(Permission perm)
    //            {
    //                //permissions.add(perm);
    //                return false; // false : don't check the permission
    //            }
    //
    //        };
    //
    //        ((JNodeSecurityManager) System.getSecurityManager()).setListener(l);
    Main.main(args);
    //        ((JNodeSecurityManager) System.getSecurityManager()).setListener(null);

    //        System.out.println("permissions:\n");
    //        for(Permission p : permissions)
    //        {
    //            System.out.println(p);
    //        }
  }
 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;
 }
Ejemplo n.º 3
0
 public void run(String args[]) {
   Main.main(args);
   // currently just a wrapper but lets keep this stub just in case we need some
   // type of preprocessing
 }