diff --git a/WHATSNEW b/WHATSNEW
index c0b09c6d2..d7bd00f80 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -202,6 +202,12 @@ Other changes:
* has a new attribute tempdir that controls the placement of
temporary files. Bugzilla Report 15454.
+* now supports a new nested element which is
+ the same as but point to compiled classes (the
+ prefered mode of operation for JDepend > 2.5). Additionally, nested
+ elements can be used to exclude certain packages from
+ being parsed. Bugzilla Report 17134.
+
Changes from Ant 1.5.2 to Ant 1.5.3
===================================
diff --git a/docs/manual/OptionalTasks/jdepend.html b/docs/manual/OptionalTasks/jdepend.html
index b66e7f102..09d4c647c 100644
--- a/docs/manual/OptionalTasks/jdepend.html
+++ b/docs/manual/OptionalTasks/jdepend.html
@@ -19,14 +19,15 @@
It allows to "automatically measure the quality of a design in terms of its extensibility, reusability, and maintainability to
effectively manage and control package dependencies."
-Source file directories are defined by nested <sourcespath>
, see nested elements.
+Source file directories are defined by nested
+<sourcespath>
; Class file directories are defined
+by nested <classesespath>
, see nested elements.
Optionally, you can also set the outputfile
name where the output is stored. By default the task writes its report to the standard output.
The task requires at least the JDepend 1.2 version.
-Note: whereas the JDepend tool can be customized to exclude some packages, the current jdepend And Task does not have parameters to allow these exclusions. Read JDepend specific documentation for that purpose.
-
Parameters
@@ -79,26 +80,37 @@ effectively manage and control package dependencies."
-jdepend
supports two nested elements <classpath>
and <sourcespath>
,
-that represent PATH like structures.
-
-<sourcespath>
is used to define the paths of the source code to analyze.
+jdepend
supports four nested elements:
+<classpath>, <classespath>
and
+<sourcespath>
, that represent PATH like structures, and
+<exclude>
.
+
+<sourcespath>
is used to define the paths of the
+source code to analyze, but it is deprecated. With version 2.5 of
+JDepend, only class files are analyzed. The nested element
+<classespath> replaces <sourcespath> and is used to define
+the paths of compiled class code to analyze; the <sourcespath>
+variable is still available in case you are using an earlier version
+of JDepend. The <exclude> element can be used to set packages
+to ignore.
Examples
<jdepend classpathref="base.path">
- <sourcespath>
- <pathelement location="src"/>
- </sourcespath>
+ <classespath>
+ <pathelement location="build"/>
+ </classespath>
</jdepend>
-This invokes JDepend on the src
directory, writing the output on the standard output.
-The classpath is defined using a classpath reference.
+This invokes JDepend on the build
directory, writing
+the output on the standard output. The classpath is defined using a
+classpath reference.
@@ -111,15 +123,32 @@ The classpath is defined using a classpath reference.
<pathelement location="lib/jdepend.jar"/>
</classpath>
</jdepend>
+
+
+
+This invokes JDepend in a separate VM on the src
and
+testsrc
directories, writing the output to the
+<docs/jdepend.xml>
file in xml format. The
+classpath is defined using nested elements.
+
+
+<jdepend classpathref="base.path">
+ <exclude name="java.*>
+ <exclude name="javax.*>
+ <classespath>
+ <pathelement location="build"/>
+ </classespath>
+</jdepend>
-This invokes JDepend in a separate VM on the src
and testsrc
directories, writing the output to the <docs/jdepend.xml>
file in xml format.
-The classpath is defined using nested elements.
+This invokes JDepend with the build directory as the base for class
+files to analyze, and will ignore all classes in the java.* and
+javax.* packages.
-Copyright © 2001-2002 Apache Software Foundation. All rights
+
Copyright © 2001-2003 Apache Software Foundation. All rights
Reserved.