![]()
|
JDependTask (Apache Ant API)
org.apache.tools.ant.taskdefs.optional.jdepend
|
Nested Class Summary | |
static class |
JDependTask.FormatAttribute
|
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 | |
JDependTask()
|
Method Summary | |
Path |
createClasspath()
Adds a path to the classpath. |
Commandline.Argument |
createJvmarg(CommandlineJava commandline)
Create a new JVM argument. |
Path |
createSourcespath()
Adds a path to source code to analyze. |
protected ExecuteWatchdog |
createWatchdog()
|
void |
execute()
Called by the project to let the task do its work. |
int |
executeAsForked(CommandlineJava commandline,
ExecuteWatchdog watchdog)
Execute the task by forking a new JVM. |
int |
executeInVM(CommandlineJava commandline)
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)
If true, forks into a new JVM. |
void |
setFormat(JDependTask.FormatAttribute ea)
|
void |
setHaltonerror(boolean value)
Whether or not to halt on failure. |
void |
setJvm(java.lang.String value)
The command used to invoke a forked Java Virtual Machine. |
void |
setOutputFile(java.io.File outputFile)
The output file name. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, 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 JDependTask()
Method Detail |
public void setOutputFile(java.io.File outputFile)
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(CommandlineJava commandline)
setFork(boolean)
public void setClasspathRef(Reference r)
public void setFormat(JDependTask.FormatAttribute ea)
ea
- public void execute() throws BuildException
Task
BuildException
- if something goes wrong with the buildpublic int executeInVM(CommandlineJava commandline) throws BuildException
public int executeAsForked(CommandlineJava commandline, 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.
BuildException
protected ExecuteWatchdog createWatchdog() throws BuildException
BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |