Package org.apache.tools.ant.taskdefs

Examples of org.apache.tools.ant.taskdefs.Zip


    public TestFile createFile(Object path) {
        return file(path).createFile();
    }

    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;
    }
View Full Code Here


    } catch (IOException e) {
      throw new MoxieException(e);
    }
   
    // create javadoc jar
    Zip jar = new Zip();
    jar.setProject(getProject());
    jar.setBasedir(destDir);
    jar.setDestFile(new File(build.getConfig().getTargetDirectory(),
        MessageFormat.format("{0}-{1}-javadoc.jar",
            build.getPom().artifactId, build.getPom().version)));
    jar.execute();
  }
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.taskdefs.Zip

Copyright © 2018 www.massapicom. 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.