| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.Pack
All known Subclasses: org.apache.tools.ant.taskdefs.GZip, org.apache.tools.ant.taskdefs.BZip2,
Pack | abstract public class Pack extends Task (Code) | | Abstract Base class for pack tasks.
since: Ant 1.5 |
addConfigured | public void addConfigured(ResourceCollection a)(Code) | | Set the source resource.
Parameters: a - the resource to pack as a single element Resource collection. |
getSrcResource | public Resource getSrcResource()(Code) | | The source resource.
the source. since: Ant 1.7 |
pack | abstract protected void pack()(Code) | | subclasses must implement this method to do their compression
|
setDestfile | public void setDestfile(File zipFile)(Code) | | the required destination file.
Parameters: zipFile - the destination file |
setSrc | public void setSrc(File src)(Code) | | the file to compress; required.
Parameters: src - the source file |
setSrcResource | public void setSrcResource(Resource src)(Code) | | The resource to pack; required.
Parameters: src - resource to expand |
setZipfile | public void setZipfile(File zipFile)(Code) | | the required destination file.
Parameters: zipFile - the destination file |
supportsNonFileResources | protected boolean supportsNonFileResources()(Code) | | Whether this task can deal with non-file resources.
This implementation returns false.
false. since: Ant 1.7 |
zipResource | protected void zipResource(Resource resource, OutputStream zOut) throws IOException(Code) | | zip a resource to an output stream
Parameters: resource - the resource to zip Parameters: zOut - the output stream throws: IOException - on error |
|
|