| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.tools.ant.taskdefs.Pack
Abstract Base class for pack tasks.
| Field Summary | |
| protected  java.io.File | source | 
| protected  java.io.File | zipFile | 
| Fields inherited from class org.apache.tools.ant.Task | 
| description, location, target, taskName, taskType, wrapper | 
| Fields inherited from class org.apache.tools.ant.ProjectComponent | 
| project | 
| Constructor Summary | |
| Pack() | |
| 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(java.io.File zipFile)the required destination file. | 
|  void | setSrc(java.io.File src)the file to compress; required. | 
|  void | setZipfile(java.io.File zipFile)the required destination file. | 
| protected  void | zipFile(java.io.File file,
        java.io.OutputStream zOut)zip a file to an output stream | 
| Methods inherited from class org.apache.tools.ant.Task | 
| 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 | 
| Methods inherited from class org.apache.tools.ant.ProjectComponent | 
| getProject, setProject | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected java.io.File zipFile
protected java.io.File source
| Constructor Detail | 
public Pack()
| Method Detail | 
public void setZipfile(java.io.File zipFile)
zipFile - public void setDestfile(java.io.File zipFile)
zipFile - public void setSrc(java.io.File src)
src - 
public void execute()
             throws BuildException
execute in class TaskBuildException
protected void zipFile(java.io.File file,
                       java.io.OutputStream zOut)
                throws java.io.IOException
file - zOut - 
java.io.IOExceptionprotected abstract void pack()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||