use of org.apache.tools.ant.taskdefs.Tar in project adempiere by adempiere.
the class CreateZipFile method tarFolder.
public static void tarFolder(File srcFolder, File destTarFile, String includesdir) {
Tar tarer = new Tar();
tarer.setDestFile(destTarFile);
tarer.setBasedir(srcFolder);
tarer.setIncludes(includesdir);
tarer.setCaseSensitive(false);
tarer.setTaskName("tar");
tarer.setTaskType("tar");
tarer.setProject(new Project());
tarer.setOwningTarget(new Target());
tarer.execute();
}
use of org.apache.tools.ant.taskdefs.Tar in project JessMA by ldcsaa.
the class Tarrer method getTask.
/** 获取压缩任务对象 */
@Override
protected Task getTask() {
Project project = new Project();
Tar tar = new Tar();
tar.setProject(project);
createSourceFileSet(tar);
tar.setDestFile(getTargetFile());
tar.setCompression(getCompressionMethod());
return tar;
}