createClassespath
public Path createClassespath()
Adds a path to class code to analyze.
- a classes path
createClasspath
public Path createClasspath()
Adds a path to the classpath.
- a classpath
createExclude
public PatternSet.NameEntry createExclude()
add a name entry on the exclude list
- a pattern for the excludes
createJvmarg
public Commandline.Argument createJvmarg(CommandlineJava commandline)
Create a new JVM argument. Ignored if no JVM is forked.
commandline
- the commandline to create the argument on
- create a new JVM argument so that any argument can
be passed to the JVM.
setFork(boolean)
createSourcespath
public Path createSourcespath()
Adds a path to source code to analyze.
- a source path
executeAsForked
public int executeAsForked(CommandlineJava commandline,
ExecuteWatchdog watchdog)
throws BuildException
Execute the task by forking a new JVM. The command will block until
it finishes. To know if the process was destroyed or not, use the
killedProcess() method of the watchdog class.
commandline
- the commandline for forked jvmwatchdog
- the watchdog in charge of cancelling the test if it
exceeds a certain amount of time. Can be null.
- the result of running the jdepend
BuildException
- in case of error
getClassespath
public Path getClassespath()
Gets the classespath.
- the classes path
getClasspath
public Path getClasspath()
Gets the classpath to be used for this compilation.
- the class path used for compilation
getDir
public File getDir()
- the dir attribute
getExcludes
public PatternSet getExcludes()
- the excludes patterns
getFork
public boolean getFork()
- the value of the fork attribute
getHaltonerror
public boolean getHaltonerror()
- the value of the haltonerror attribute
getOutputFile
public File getOutputFile()
- the output file name
getSourcespath
public Path getSourcespath()
Gets the sourcepath.
- the sources path
getTimeout
public Long getTimeout()
- the timeout value
setClasspath
public void setClasspath(Path classpath)
Set the classpath to be used for this compilation.
classpath
- a class path to be used
setClasspathRef
public void setClasspathRef(Reference r)
Adds a reference to a classpath defined elsewhere.
r
- a classpath reference
setDir
public void setDir(File dir)
The directory to invoke the VM in. Ignored if no JVM is forked.
dir
- the directory to invoke the JVM from.
setFork(boolean)
setFork
public void setFork(boolean value)
If true, forks into a new JVM. Default: false.
value
- true if a JVM should be forked,
otherwise false
setHaltonerror
public void setHaltonerror(boolean haltonerror)
Whether or not to halt on failure. Default: false.
haltonerror
- the value to set
setIncluderuntime
public void setIncluderuntime(boolean b)
If true,
include jdepend.jar in the forked VM.
b
- include ant run time yes or no
- Ant 1.6
setJvm
public void setJvm(String value)
The command used to invoke a forked Java Virtual Machine.
Default is java. Ignored if no JVM is forked.
value
- the new VM to use instead of java
setFork(boolean)
setOutputFile
public void setOutputFile(File outputFile)
The output file name.
outputFile
- the output file name
setTimeout
public void setTimeout(Long value)
Set the timeout value (in milliseconds).
If the operation is running for more than this value, the jdepend
will be canceled. (works only when in 'fork' mode).
value
- the maximum time (in milliseconds) allowed before
declaring the test as 'timed-out'
setFork(boolean)