public class Pack200Normalize
extends org.apache.tools.ant.Task
As stated in Pack200.Packer's javadocs applying a Pack200 compression to a JAR archive will in general make its sigantures invalid. In order to prepare a JAR for signing it should be "normalized" by packing and unpacking it. This is what this task does.
Constructor and Description |
---|
Pack200Normalize() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredProperty(org.apache.tools.ant.types.Environment.Variable prop)
Sets a property for the Pack200 packer.
|
void |
execute() |
void |
setDestFile(java.io.File d)
The destination archive.
|
void |
setForce(boolean b)
Whether to force normalization of the archive even if the
destination is up-to-date.
|
void |
setSrcFile(java.io.File s)
The JAR archive to normalize.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setSrcFile(java.io.File s)
public void setDestFile(java.io.File d)
public void setForce(boolean b)
You must set this to true if you don't specify a destFile or the archive will never get normalized.
public void addConfiguredProperty(org.apache.tools.ant.types.Environment.Variable prop)
public void execute()
execute
in class org.apache.tools.ant.Task