Name

jdepend

Synopsis

Executes the JDepend tool. JDepend analyzes Java source files, producing design quality metrics for each package. This task requires JDepend Version 1.2 or later, which is available at http://www.clarkware.com/software/JDepend.html.

Attributes

classpath (1.4, Path, N)

The classpath to use.

classpathref (1.4, Reference, N)

A reference to a classpath defined elsewhere in the buildfile.

dir (1.4, File, N)

The working directory for the JVM.

fork (1.4, boolean, N)

If true, the task forks a new JVM instance. Defaults to false.

haltonerror (1.4, boolean, N)

If true, the task halts the build when errors occur. Defaults to false.

jvm (1.4, String, N)

The command used to invoke the JVM. Ignored if fork=false. Defaults to java.

outputfile (1.4, File, N)

The task sends output to this file, or to the current output stream if omitted.

Content

0,1 nested <classpath> elements (1.4)

A path element used in place of the classpath or classpathref attributes.

0..n nested <jvmarg> elements (1.4)

Command-line arguments as described in Chapter 4. Only valid when fork=true.

1..n nested <sourcespath> elements (1.4)

The path elements defining where Java source files are located.

Get Ant: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.