|
||||||||||
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
net.sourceforge.retroweaver.ant.RetroWeaverTask
public class RetroWeaverTask
An Ant task for running RetroWeaver on a set of class files.
Nested Class Summary | |
---|---|
static class |
RetroWeaverTask.Namespace
NameSpace in translator package is immutable. |
Field Summary |
---|
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 | |
---|---|
RetroWeaverTask()
|
Method Summary | |
---|---|
void |
addDirSet(org.apache.tools.ant.types.DirSet pFileSet)
|
void |
addFileSet(org.apache.tools.ant.types.FileSet pFileSet)
Add a set of files to be weaved. |
org.apache.tools.ant.types.Path |
createClasspath()
Gets the classpath to be used for verification. |
RetroWeaverTask.Namespace |
createNameSpace()
|
boolean |
doVerify()
Turn off verification if desired |
void |
execute()
Run the RetroWeaver task. |
java.lang.String |
getInputJar()
|
java.lang.String |
getOutputJar()
|
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Set the classpath to be used for verification. |
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a classpath defined elsewhere. |
void |
setDestDir(java.io.File pDir)
Set the destination directory for processed classes. |
void |
setFailOnError(boolean pFailOnError)
Specify if an error should cause the script to fail. |
void |
setInputJar(java.lang.String inputJar)
|
void |
setLazy(boolean pLazy)
Specify if classes should only be processed if their current version differ from the target version. |
void |
setOutputJar(java.lang.String outputJar)
|
void |
setSrcDir(java.io.File pDir)
Set the source directory containing classes to process. |
void |
setStripAttributes(boolean stripAttributes)
|
void |
setStripSignatures(boolean stripSignatures)
|
void |
setTarget(java.lang.String target)
Set the target class file version. |
void |
setVerbose(boolean pVerbose)
Specify if each processed class should be logged. |
void |
setVerify(boolean newVerify)
Turn off verification if desired |
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 |
Constructor Detail |
---|
public RetroWeaverTask()
Method Detail |
---|
public void setDestDir(java.io.File pDir)
pDir
- The destination directory.public void setFailOnError(boolean pFailOnError)
true
.
pFailOnError
- true
to fail, false
to keep going.public void addFileSet(org.apache.tools.ant.types.FileSet pFileSet)
pSet
- The fileset.public void addDirSet(org.apache.tools.ant.types.DirSet pFileSet)
public void setLazy(boolean pLazy)
true
.
pLazy
- true
for lazy processing.public void setSrcDir(java.io.File pDir)
pDir
- The directory.public void setVerbose(boolean pVerbose)
false
.
pVerbose
- true
for verbose processing.public void setTarget(java.lang.String target)
target
- The JDK target version, e g "1.3".public void setClasspath(org.apache.tools.ant.types.Path classpath)
classpath
- an Ant Path object containing the compilation classpath.public org.apache.tools.ant.types.Path createClasspath()
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
r
- a reference to a classpathpublic void setVerify(boolean newVerify)
public boolean doVerify()
public RetroWeaverTask.Namespace createNameSpace()
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- If a build exception occurs.public java.lang.String getInputJar()
public void setInputJar(java.lang.String inputJar)
inputJar
- The inputJar to set.public java.lang.String getOutputJar()
public void setOutputJar(java.lang.String outputJar)
outputJar
- The outputJar to set.public void setStripSignatures(boolean stripSignatures)
stripSignatures
- The stripSignatures to set.public void setStripAttributes(boolean stripAttributes)
stripAttributes
- The stripAttributes to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |