|
|||||||||||
| 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.virtualmock.taskdef.VMTransformTask
Task to perform transformation of class or jar files to be executed with VirtualMock.
| Field Summary |
| Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Constructor Summary | |
VMTransformTask()
Creates a new VMTransformTask object. |
|
| Method Summary | |
org.apache.tools.ant.types.Path |
createClasspath()
Overridden method to handle classpath. |
protected void |
deleteOutjarFile(java.io.File outjarFile)
Delete the output jar, if it exists. |
void |
execute()
Perform execution of the task, first performing necessary setup to run VirtualMock unit tests. |
java.lang.String |
getAspectjClassname()
Gets the classname for the AspectJ compiler. |
java.lang.String |
getAspectpath()
Gets jar containing VirtualMock aspect classes to weave. |
java.lang.String |
getAspectpathJarPrefix()
Gets string which will be used to search the classpath for the aspectpath jar (using String.indexOf(String)). |
java.lang.String |
getAspectWerkzClassname()
Gets the classname for the AspectWerkz compiler. |
org.apache.tools.ant.types.Path |
getClasspath()
Gets the currently set classpath. |
org.apache.tools.ant.types.CommandlineJava |
getCommandline()
Gets the command line. |
java.lang.String |
getInjars()
The input jars which will be woven. |
java.lang.String |
getOutjar()
Gets the output jar. |
boolean |
isUseAspectJ()
Returns flag which indicates whether AspectJ should be used to weave. |
boolean |
isUseAspectWerkz()
Returns the flag which indicates whether AspectWerkz should be used to weave. |
protected void |
performAspectjPreProcessing()
Performs preprocessing that is specific to AspectJ. |
protected void |
performAspectwerkzPreProcessing(java.io.File outjarFile)
Performs preprocessing that is specific to AspectWerkz. |
void |
setAspectjClassname(java.lang.String aspectjClassname)
Sets the classname for the AspectJ compiler. |
void |
setAspectpath(java.lang.String aspectpath)
Sets jar containing VirtualMock aspect classes to weave. |
void |
setAspectpathJarPrefix(java.lang.String aspectpathJarPrefix)
Sets string which will be used to search the classpath for the aspectpath jar (using String.indexOf(String)). |
void |
setAspectWerkzClassname(java.lang.String aspectWerkzClassname)
Sets the classname for the AspectWerkz compiler. |
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Sets the classpath to use. |
void |
setCommandline(org.apache.tools.ant.types.CommandlineJava commandline)
Sets the command line. |
protected void |
setDefaultAspectPath()
If aspectpath was not set by user, search the classpath for the jar containing the virtualmock aspects and set it in the aspectpath variable. |
void |
setInjars(java.lang.String injars)
Setter for the input jars. |
void |
setOutjar(java.lang.String outjar)
Sets the output jar. |
void |
setUseAspectJ(boolean useAspectJ)
Indicates whether AspectJ should be used as the Aspect-Oriented Programming (AOP) framework. |
void |
setUseAspectWerkz(boolean useAspectWerkz)
Sets the flag which indicates whether AspectWerkz should be used to weave. |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VMTransformTask()
| Method Detail |
public void setAspectWerkzClassname(java.lang.String aspectWerkzClassname)
aspectWerkzClassname - The aspectWerkzClassname to set.public java.lang.String getAspectWerkzClassname()
public void setAspectjClassname(java.lang.String aspectjClassname)
aspectjClassname - The aspectjClassname to set.public java.lang.String getAspectjClassname()
public void setAspectpath(java.lang.String aspectpath)
aspectpath - the aspectpath to setpublic java.lang.String getAspectpath()
public void setAspectpathJarPrefix(java.lang.String aspectpathJarPrefix)
aspectpathJarPrefix - the aspectpathJarPrefix to setpublic java.lang.String getAspectpathJarPrefix()
public void setClasspath(org.apache.tools.ant.types.Path classpath)
classpath - The classpath to set.public org.apache.tools.ant.types.Path getClasspath()
public void setCommandline(org.apache.tools.ant.types.CommandlineJava commandline)
commandline - The commandline to set.public org.apache.tools.ant.types.CommandlineJava getCommandline()
public void setInjars(java.lang.String injars)
injars - the injars to setpublic java.lang.String getInjars()
public void setOutjar(java.lang.String outjar)
outjar - the outjar to setpublic java.lang.String getOutjar()
public void setUseAspectJ(boolean useAspectJ)
useAspectJ - flag indicating whether AspectJ should be used.public boolean isUseAspectJ()
public void setUseAspectWerkz(boolean useAspectWerkz)
useAspectWerkz - flag indicating whether AspectWerkz should be used
to weave.public boolean isUseAspectWerkz()
public org.apache.tools.ant.types.Path createClasspath()
public void execute()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - DOCUMENT ME! (Constructor Exception)protected void setDefaultAspectPath()
protected void deleteOutjarFile(java.io.File outjarFile)
outjarFile - the File object representing the outjarprotected void performAspectjPreProcessing()
protected void performAspectwerkzPreProcessing(java.io.File outjarFile)
outjarFile - the File object represented by outjar
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||