Java Code Examples for org.apache.tools.ant.taskdefs.Zip#setExcludes()

The following examples show how to use org.apache.tools.ant.taskdefs.Zip#setExcludes() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestFile.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
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;
}
 
Example 2
Source File: TestFile.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
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;
}
 
Example 3
Source File: TestFile.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
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;
}
 
Example 4
Source File: TestFile.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
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;
}