| net.sourceforge.groboutils.codecoverage.v2.ant.GroboReZipTask
GroboReZipTask | public class GroboReZipTask extends Task (Code) | | Similar to the Zip task, but its purpose is to modify not only
one zip file, but possibly many containing zip files as well.
Also, should have meta-inf support for modifying the classpath to
add in the runtime jar file.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2004/07/08 05:29:19 $ since: March 23, 2004 |
Inner Class :public static class ReZipFileSet extends ZipFileSet | |
Inner Class :public static class AlterZip | |
Inner Class :abstract public static class ModifyEntry | |
Inner Class :public static class AlterZipModifyEntry extends ModifyEntry | |
Inner Class :public static class AlterEar extends AlterZip | |
Inner Class :public static class AlterJar extends AlterZip | |
Inner Class :public static class AlterWar extends AlterZip | |
Method Summary | |
public void | addAlterEar(AlterEar z) | public void | addAlterJar(AlterJar z) | public void | addAlterWar(AlterWar z) | public void | addAlterZip(AlterZip z) | final protected void | addParentDirs(File baseDir, String entry, ZipOutputStream zOut, String prefix, int dirMode, Vector addedFiles, boolean replaceOnly) Ripped from Ant's Zip task. | final protected void | addResources(AlterZip az, FileSet fileset, String[] resources, boolean areDirs, ZipOutputStream zOut, Vector addedFiles, Vector originalFiles) Add the given resources. | public void | execute() | protected void | finalizeZipOutputStream(ZipOutputStream zOut) | protected void | initZipOutputStream(ZipOutputStream zOut) | public void | processZip(AlterZip az, File src, File dest) | protected void | zipDir(File dir, ZipOutputStream zOut, String vPath, int mode, Vector addedFiles) Ripped from Ant's Zip task. | protected void | zipFile(AlterZip az, File file, ZipOutputStream zOut, String vPath, int mode, Vector addedFiles) Ripped from Ant's Zip task. | protected void | zipFile(AlterZip az, ModifyEntry me, InputStream in, ZipOutputStream zOut, String vPath, long lastModified, File fromArchive, int mode, Vector addedFiles) Ripped from Ant's Zip task. |
addAlterEar | public void addAlterEar(AlterEar z)(Code) | | |
addAlterJar | public void addAlterJar(AlterJar z)(Code) | | |
addAlterWar | public void addAlterWar(AlterWar z)(Code) | | |
addAlterZip | public void addAlterZip(AlterZip z)(Code) | | |
addParentDirs | final protected void addParentDirs(File baseDir, String entry, ZipOutputStream zOut, String prefix, int dirMode, Vector addedFiles, boolean replaceOnly) throws IOException(Code) | | Ripped from Ant's Zip task.
Ensure all parent dirs of a given entry have been added.
since: Ant 1.5.2 |
addResources | final protected void addResources(AlterZip az, FileSet fileset, String[] resources, boolean areDirs, ZipOutputStream zOut, Vector addedFiles, Vector originalFiles) throws IOException(Code) | | Add the given resources. Ripped from Ant's Zip task.
Parameters: fileset - may give additional information like fullpath orpermissions. Parameters: resources - the resources to add Parameters: zOut - the stream to write to since: Ant 1.5.2 |
execute | public void execute() throws BuildException(Code) | | |
zipFile | protected void zipFile(AlterZip az, File file, ZipOutputStream zOut, String vPath, int mode, Vector addedFiles) throws IOException(Code) | | Ripped from Ant's Zip task.
Method that gets called when adding from java.io.File instances.
This implementation delegates to the six-arg version.
Parameters: file - the file to add to the archive Parameters: zOut - the stream to write to Parameters: vPath - the name this entry shall have in the archive Parameters: mode - the Unix permissions to set. since: Ant 1.5.2 |
zipFile | protected void zipFile(AlterZip az, ModifyEntry me, InputStream in, ZipOutputStream zOut, String vPath, long lastModified, File fromArchive, int mode, Vector addedFiles) throws IOException(Code) | | Ripped from Ant's Zip task.
Adds a new entry to the archive, takes care of duplicates as well.
Parameters: in - the stream to read data for the entry from. Parameters: zOut - the stream to write to. Parameters: vPath - the name this entry shall have in the archive. Parameters: lastModified - last modification time for the entry. Parameters: fromArchive - the original archive we are copying thisentry from, will be null if we are not copying from an archive. Parameters: mode - the Unix permissions to set. since: Ant 1.5.2 |
|
|