org.apache.tools.ant.taskdefs
public abstract class Pack extends Task
Since: Ant 1.5
Field Summary | |
---|---|
protected File | source |
protected File | zipFile |
Method Summary | |
---|---|
void | execute()
validate, then hand off to the subclass |
protected abstract void | pack()
subclasses must implement this method to do their compression |
void | setDestfile(File zipFile)
the required destination file. |
void | setSrc(File src)
the file to compress; required. |
void | setZipfile(File zipFile)
the required destination file. |
protected void | zipFile(File file, OutputStream zOut)
zip a file to an output stream |
Throws: BuildException
Parameters: zipFile
Parameters: src
Parameters: zipFile
Parameters: file zOut
Throws: IOException