| Modifier and Type | Field and Description | 
|---|---|
| protected java.io.File | source | 
| protected java.io.File | zipFile | 
description, location, project| Constructor and Description | 
|---|
| Pack() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addConfigured(ResourceCollection a)Set the source resource. | 
| void | execute()validate, then hand off to the subclass | 
| Resource | getSrcResource()The source resource. | 
| 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 | setSrcResource(Resource src)The resource to pack; required. | 
| void | setZipfile(java.io.File zipFile)the required destination file. | 
| protected boolean | supportsNonFileResources()Whether this task can deal with non-file resources. | 
| protected void | zipFile(java.io.File file,
       java.io.OutputStream zOut)zip a file to an output stream | 
| protected void | zipResource(Resource resource,
           java.io.OutputStream zOut)zip a resource to an output stream | 
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic void setZipfile(java.io.File zipFile)
zipFile - the destination filepublic void setDestfile(java.io.File zipFile)
zipFile - the destination filepublic void setSrc(java.io.File src)
src - the source filepublic void setSrcResource(Resource src)
src - resource to expandpublic void addConfigured(ResourceCollection a)
a - the resource to pack as a single element Resource collection.public void execute()
             throws BuildException
execute in class TaskBuildException - on errorprotected void zipFile(java.io.File file,
                       java.io.OutputStream zOut)
                throws java.io.IOException
file - the file to zipzOut - the output streamjava.io.IOException - on errorprotected void zipResource(Resource resource, java.io.OutputStream zOut) throws java.io.IOException
resource - the resource to zipzOut - the output streamjava.io.IOException - on errorprotected abstract void pack()
public Resource getSrcResource()
protected boolean supportsNonFileResources()
This implementation returns false.