|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Copy
org.jdesktop.deployment.ant.pack200.Pack200Task
public class Pack200Task
Ant Task performing the pack200 operation on a single file or on a fileset.
| Field Summary | |
|---|---|
static List |
DEFLATE_HINT_VALUES
|
static List |
MODIFICATION_TIME_VALUES
|
static List |
UNKNOWN_ATTRIBUTE_VALUES
|
| Fields inherited from class org.apache.tools.ant.taskdefs.Copy |
|---|
completeDirMap, destDir, destFile, dirCopyMap, failonerror, file, fileCopyMap, fileUtils, filtering, flatten, forceOverwrite, includeEmpty, mapperElement, preserveLastModified, rcs, verbosity |
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
Pack200Task()
|
|
| Method Summary | |
|---|---|
protected void |
doFileOperations()
|
void |
execute()
|
protected Properties |
getPackProperties()
Returns the packing properties from the property file if specified. |
void |
setConfigFile(File config)
Useful to set those Pack200 attributes which are not commonly used. |
void |
setDeflateHint(String value)
Sets the deflate hint for the archive |
void |
setDestfile(File destFile)
Deprecated. Use setTofile() instead |
void |
setEffort(int value)
Sets the effort. |
void |
setGZIPOutput(boolean value)
Sets whether the pack archive is additionally deflated with gzip. |
void |
setKeepFileOrder(boolean value)
Sets the file ordering. |
void |
setModificationTime(String value)
Sets the modification time for the archive |
void |
setRepack(boolean value)
Sets the repack option, ie the jar will be packed and repacked. |
void |
setSegmentLimit(int value)
Sets the segment limit. |
void |
setSrc(File src)
Deprecated. Use setFile() instead |
void |
setStripDebug(boolean value)
Sets whether the Java debug attributes should be stripped |
void |
setUnknownAttribute(String value)
Sets the action to be taken if an unknown attribute is encountered. |
protected void |
validateAttributes()
|
| Methods inherited from class org.apache.tools.ant.taskdefs.Copy |
|---|
add, add, addFileset, buildMap, buildMap, createFilterChain, createFilterSet, createMapper, doResourceOperations, getEncoding, getFileUtils, getFilterChains, getFilterSets, getOutputEncoding, getPreserveLastModified, isEnableMultipleMapping, scan, scan, setEnableMultipleMappings, setEncoding, setFailOnError, setFile, setFiltering, setFlatten, setGranularity, setIncludeEmptyDirs, setOutputEncoding, setOverwrite, setPreserveLastModified, setPreserveLastModified, setTodir, setTofile, setVerbose, supportsNonFileResources |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final List MODIFICATION_TIME_VALUES
public static final List DEFLATE_HINT_VALUES
public static final List UNKNOWN_ATTRIBUTE_VALUES
| Constructor Detail |
|---|
public Pack200Task()
| Method Detail |
|---|
protected void validateAttributes()
validateAttributes in class org.apache.tools.ant.taskdefs.Copypublic void setSrc(File src)
src - the source filepublic void setDestfile(File destFile)
destFile - the destination filepublic void setRepack(boolean value)
public void setGZIPOutput(boolean value)
public void setStripDebug(boolean value)
public void setModificationTime(String value)
public void setDeflateHint(String value)
public void setKeepFileOrder(boolean value)
public void setSegmentLimit(int value)
public void setEffort(int value)
public void setUnknownAttribute(String value)
public void setConfigFile(File config)
public void execute()
execute in class org.apache.tools.ant.taskdefs.Copyprotected Properties getPackProperties()
protected void doFileOperations()
doFileOperations in class org.apache.tools.ant.taskdefs.Copy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||