Package org.apache.tools.ant.taskdefs

Examples of org.apache.tools.ant.taskdefs.Expand.execute()


            FileUtils.forceMkdir(geronimoHome);
           
            Expand unzip = (Expand)createTask("unzip");
            unzip.setSrc(assemblyArchive);
            unzip.setDest(installDirectory.getCanonicalFile());
            unzip.execute();

            // Make scripts executable, since Java unzip ignores perms
            Chmod chmod = (Chmod)createTask("chmod");
            chmod.setPerm("ugo+rx");
            chmod.setDir(geronimoHome);
View Full Code Here


            FileUtils.forceMkdir(geronimoHome);
           
            Expand unzip = (Expand)createTask("unzip");
            unzip.setSrc(assemblyArchive);
            unzip.setDest(installDirectory);
            unzip.execute();

            // Make scripts executable, since Java unzip ignores perms
            Chmod chmod = (Chmod)createTask("chmod");
            chmod.setPerm("ugo+rx");
            chmod.setDir(geronimoHome);
View Full Code Here

          /* Unpack jar file */
          unjar.setProject(getProject());
          unjar.setDest(new File(destDir));
          unjar.setSrc(new File(ds.getBasedir(), files[i]));
          unjar.setOverwrite(true);
          unjar.execute();
        }
      }
      for (Iterator i = orbList.iterator(); i.hasNext();) {
        /* Delete META-INF directory */
        orbName = i.next().toString();
View Full Code Here

            FileUtils.forceMkdir(geronimoHome);
           
            Expand unzip = (Expand)createTask("unzip");
            unzip.setSrc(assemblyArchive);
            unzip.setDest(installDirectory.getCanonicalFile());
            unzip.execute();

            // Make scripts executable, since Java unzip ignores perms
            Chmod chmod = (Chmod)createTask("chmod");
            chmod.setPerm("ugo+rx");
            chmod.setDir(geronimoHome);
View Full Code Here

        unpackDir.mkdirs();
        unpackedJarDirs.add(unpackDir);

        unjar.setDest(unpackDir);
        unjar.setSrc(new File(scanner.getBasedir(), files[i]));
        unjar.execute();
      }
    }
  }

  void createDirectories() throws BuildException {
View Full Code Here

         // Unzip the zip file
         Expand unzipper = (Expand)m_project.createTask("unzip");
         unzipper.setSrc(zipFileSet.getSrc(m_project));
         unzipper.setDest(outFolder);
         unzipper.execute();

         // Change the file set to use the new directory
         zipFileSet.setSrcResource(null);
         zipFileSet.setDir(outFolder);
View Full Code Here

            FileUtils.forceMkdir(geronimoHome);
           
            Expand unzip = (Expand)createTask("unzip");
            unzip.setSrc(assemblyArchive);
            unzip.setDest(installDirectory.getCanonicalFile());
            unzip.execute();

            // Make scripts executable, since Java unzip ignores perms
            Chmod chmod = (Chmod)createTask("chmod");
            chmod.setPerm("ugo+rx");
            chmod.setDir(geronimoHome);
View Full Code Here

        expand.setSrc(tempZipFile.toFile());

        expand.setProject(AntUtil.builder().getProject());
        expand.setTaskName("unzip");

        expand.execute();
    }

    private static final Logger LOGGER = Logger.getLogger(ZipTasks.class);
}
View Full Code Here

            Expand e = new Expand();
            e.setProject(new Project());
            e.setTaskType("unzip");
            e.setSrc(archive);
            e.setDest(destDir);
            e.execute();
        } catch (BuildException x) {
            throw new IOException2("Failed to expand " + archive,x);
        }

        try {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.