org.apache.tools.ant.taskdefs
Class Pack
public abstract class Pack
Abstract Base class for pack tasks.
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
|
execute , getDescription , getLocation , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , maybeConfigure , perform , reconfigure , setDescription , setLocation , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
source
protected File source
zipFile
protected File zipFile
pack
protected abstract void pack()
subclasses must implement this method to do their compression
setDestfile
public void setDestfile(File zipFile)
the required destination file.
setSrc
public void setSrc(File src)
the file to compress; required.
setZipfile
public void setZipfile(File zipFile)
the required destination file.
zipFile
protected void zipFile(File file,
OutputStream zOut)
throws IOException
zip a file to an output stream
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.