|
||||||||||
| 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.osjava.jardiff.ant.JarDiffTask
public class JarDiffTask
Process two jarfiles generating a public API difference report. This is useful for keeping track of API changes between versions of a project.
| Field Summary | |
|---|---|
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. |
| 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 | |
|---|---|
JarDiffTask()
|
|
| Method Summary | |
|---|---|
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. |
| 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 |
|---|
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
| Constructor Detail |
|---|
public JarDiffTask()
| Method Detail |
|---|
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||