public class JarDiffTask
extends org.apache.tools.ant.Task
Modifier and Type | Field and Description |
---|---|
private boolean |
force
Force output, even if the existing output is newer than
the jar files.
|
private java.io.File |
fromJar
The jarfile this diff is from.
|
private java.lang.String |
fromName
The name to use for the from version.
|
private java.io.File |
out
The file to write the report to.
|
private java.io.File |
toJar
The jarfile this diff is to.
|
private java.lang.String |
toName
The name to use for the to verison.
|
Constructor and Description |
---|
JarDiffTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Run the task, generating the jardiff report.
|
void |
setForce(boolean force)
Force output even if there is an existing diff file which is
newer than the source jar files.
|
void |
setFromjar(java.io.File fromJar)
Set the from jar file.
|
void |
setFromname(java.lang.String fromName)
Set the from jar visible name.
|
void |
setOut(java.io.File out)
Set the out file.
|
void |
setTojar(java.io.File toJar)
Set the to jar file.
|
void |
setToname(java.lang.String toName)
Set the to jar visible name.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
private java.io.File fromJar
private java.io.File toJar
private java.io.File out
private java.lang.String fromName
private java.lang.String toName
private boolean force
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- When there is an error creating the diff,
When there is a problem with the xml parser,
When there is a problem with the xslt transformer
When the attributes specified are invalid.public void setFromjar(java.io.File fromJar)
fromJar
- a jar file.public void setTojar(java.io.File toJar)
toJar
- a jar file.public void setOut(java.io.File out)
out
- an output file.public void setFromname(java.lang.String fromName)
fromName
- a visible name.public void setToname(java.lang.String toName)
toName
- a visible name.public void setForce(boolean force)
force
- true to force output, false otherwise