|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.optional.jdepend.JDependTask
Ant task to run JDepend tests.
JDepend is a tool to generate design quality metrics for each Java package. It has been initially created by Mike Clark. JDepend can be found at http://www.clarkware.com/software/JDepend.html. The current implementation spawn a new Java VM.
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 | |
JDependTask()
|
Method Summary | |
Path |
createClasspath()
Maybe creates a nested classpath element. |
Commandline.Argument |
createJvmarg()
Create a new JVM argument. |
Path |
createSourcespath()
Maybe creates a nested classpath element. |
protected ExecuteWatchdog |
createWatchdog()
|
void |
execute()
Called by the project to let the task do it's work. |
int |
executeAsForked(ExecuteWatchdog watchdog)
Execute the task by forking a new JVM. |
int |
executeInVM()
Execute inside VM. |
Path |
getClasspath()
Gets the classpath to be used for this compilation. |
java.io.File |
getDir()
|
boolean |
getFork()
|
boolean |
getHaltonerror()
|
java.io.File |
getOutputFile()
|
Path |
getSourcespath()
Gets the sourcepath. |
void |
setClasspath(Path classpath)
Set the classpath to be used for this compilation. |
void |
setClasspathRef(Reference r)
Adds a reference to a CLASSPATH defined elsewhere. |
void |
setDir(java.io.File dir)
The directory to invoke the VM in. |
void |
setFork(boolean value)
Tells whether a JVM should be forked for the task. |
void |
setHaltonerror(boolean value)
Halt on Failure? |
void |
setJvm(java.lang.String value)
Set a new VM to execute the task. |
void |
setOutputFile(java.io.File outputFile)
|
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, 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 JDependTask()
Method Detail |
public void setOutputFile(java.io.File outputFile)
public java.io.File getOutputFile()
public void setHaltonerror(boolean value)
public boolean getHaltonerror()
public void setFork(boolean value)
value
- true if a JVM should be forked, otherwise falsepublic boolean getFork()
public void setJvm(java.lang.String value)
value
- the new VM to use instead of javasetFork(boolean)
public Path createSourcespath()
public Path getSourcespath()
public void setDir(java.io.File dir)
dir
- the directory to invoke the JVM from.setFork(boolean)
public java.io.File getDir()
public void setClasspath(Path classpath)
public Path getClasspath()
public Path createClasspath()
public Commandline.Argument createJvmarg()
setFork(boolean)
public void setClasspathRef(Reference r)
public void execute() throws BuildException
Task
execute
in class Task
org.apache.tools.ant.Task
BuildException
- if someting goes wrong with the buildpublic int executeInVM() throws BuildException
public int executeAsForked(ExecuteWatchdog watchdog) throws BuildException
watchdog
- the watchdog in charge of cancelling the test if it
exceeds a certain amount of time. Can be null, in this case
the test could probably hang forever.protected ExecuteWatchdog createWatchdog() throws BuildException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |