Search in sources :

Example 1 with Jar

use of org.apache.tools.ant.taskdefs.Jar in project processdash by dtuma.

the class PackageLaunchProfile method createResourceJar.

private void createResourceJar(File tmpFile) throws IOException, ManifestException {
    String contentToken = calculateContentToken();
    Manifest mf = buildManifest(contentToken);
    Jar jar = new Jar();
    jar.bindToOwner(this);
    jar.addConfiguredManifest(mf);
    for (FileSet fs : filesets) jar.addFileset(fs);
    tmpFile.delete();
    jar.setDestFile(tmpFile);
    jar.execute();
}
Also used : FileSet(org.apache.tools.ant.types.FileSet) Jar(org.apache.tools.ant.taskdefs.Jar) Manifest(org.apache.tools.ant.taskdefs.Manifest)

Aggregations

Jar (org.apache.tools.ant.taskdefs.Jar)1 Manifest (org.apache.tools.ant.taskdefs.Manifest)1 FileSet (org.apache.tools.ant.types.FileSet)1