Add <classespath> nested element to mirror <sourcespath> but point to
compiled classes.
Add <exclude> nested element to conditionally exclude packages from
being parsed.
PR: 17134
Submitted by: Bob Hays <electricbob at alephnaught dot com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274371 13f79535-47bb-0310-9956-ffa450edef68
It allows to "automatically measure the quality of a design in terms of its extensibility, reusability, and maintainability to
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."</P>
effectively manage and control package dependencies."</P>
<p>Source file directories are defined by nested <code><sourcespath></code>, see <a href="#nested">nested elements</a>.</p>
<p>Source file directories are defined by nested
<code><sourcespath></code>; Class file directories are defined
by nested <code><classesespath></code>, see <a
href="#nested">nested elements</a>.</p>
<p>Optionally, you can also set the <code>outputfile</code> name where the output is stored. By default the task writes its report to the standard output.</P>
<p>Optionally, you can also set the <code>outputfile</code> name where the output is stored. By default the task writes its report to the standard output.</P>
<p> The task requires at least the JDepend 1.2 version. </p>
<p> The task requires at least the JDepend 1.2 version. </p>
<P>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.</P>
<h3>Parameters</h3>
<h3>Parameters</h3>
<table BORDER=1 CELLSPACING=0 CELLPADDING=2 >
<table BORDER=1 CELLSPACING=0 CELLPADDING=2 >
@@ -79,26 +80,37 @@ effectively manage and control package dependencies."</P>
<h3><a name="nested">Nested Elements</a></h3>
<h3><a name="nested">Nested Elements</a></h3>
<p><code>jdepend</code> supports two nested elements <code><classpath></code> and <code><sourcespath></code>,
that represent <a href="../using.html#path">PATH like structures</a>.</p>
<p><code><sourcespath></code> is used to define the paths of the source code to analyze.</p>
<p><code>jdepend</code> supports four nested elements:
<code><classpath>, <classespath> </code> and
<code><sourcespath></code>, that represent <a
href="../using.html#path">PATH like structures</a>, and
<code><exclude></code>.</p>
<p><code><sourcespath></code> 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
This invokes JDepend in a separate VM on the <code>src</code> and <code>testsrc</code> directories, writing the output to the <code><docs/jdepend.xml></code> file in xml format.
The classpath is defined using nested elements.
<p>This invokes JDepend with the build directory as the base for class
files to analyze, and will ignore all classes in the java.* and
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.