diff options
Diffstat (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/jdepend.html')
-rw-r--r-- | framework/src/ant/apache-ant-1.9.6/manual/Tasks/jdepend.html | 177 |
1 files changed, 177 insertions, 0 deletions
diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/jdepend.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/jdepend.html new file mode 100644 index 00000000..7a9639da --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/jdepend.html @@ -0,0 +1,177 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> + +<html> +<head> + <link rel="stylesheet" type="text/css" href="../stylesheets/style.css"> +<title>JDepend Task</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <meta http-equiv="Content-Language" content="en-us"> +</head> + +<body> + +<h2><a NAME="JDepend"></a>JDepend</h2> + +<h3>Description</h3> + +<P>Invokes the <a href="http://www.clarkware.com/software/JDepend.html">JDepend</a> parser.</P> + +<P>This parser "traverses a set of Java source file directories and generates design quality metrics for each Java package". +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> + +<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> The task requires at least the JDepend 1.2 version. </p> + +<h3>Parameters</h3> + +<table BORDER=1 CELLSPACING=0 CELLPADDING=2 > + <tr> + <td VALIGN=TOP><b>Attribute</b></td> + <td VALIGN=TOP><b>Description</b></td> + <td ALIGN=CENTER VALIGN=TOP><b>Required</b></td> + </tr> + <tr> + <td VALIGN=TOP>outputfile</td> + <td VALIGN=TOP>The output file name. If not set, the output is printed on the standard output.</td> + <td ALIGN=CENTER VALIGN=TOP>No</td> + </tr> + <tr> + <td VALIGN=TOP>format</td> + <td VALIGN=TOP>The format to write the output in. The default is "text", the alternative is "xml"</td> + <td ALIGN=CENTER VALIGN=TOP>No</td> + </tr> + <tr> + <td VALIGN=TOP>fork</td> + <td VALIGN=TOP>Run the tests in a separate VM.</td> + <td ALIGN=CENTER VALIGN=TOP>No, default is "off"</td> + </tr> + <tr> + <td VALIGN=TOP>haltonerror</td> + <td VALIGN=TOP>Stop the build process if an error occurs during the jdepend analysis.</td> + <td ALIGN=CENTER VALIGN=TOP>No, default is "off"</td> + </tr> + <tr> + <td VALIGN=TOP>timeout</td> + <td VALIGN=TOP>Cancel the operation if it doesn't finish in the given time (measured in milliseconds). (Ignored if fork is disabled.)</td> + <td ALIGN=CENTER VALIGN=TOP>No</td> + </tr> + <tr> + <td VALIGN=TOP>jvm</td> + <td VALIGN=TOP>The command used to invoke the Java Virtual Machine, default is 'java'. The command is resolved by java.lang.Runtime.exec(). (Ignored if fork is disabled.)</td> + <td ALIGN=CENTER VALIGN=TOP>No, default "java"</td> + </tr> + <tr> + <td VALIGN=TOP>dir</td> + <td VALIGN=TOP>The directory to invoke the VM in. (Ignored if fork is disabled)</td> + <td ALIGN=CENTER VALIGN=TOP>No</td> + </tr> + <tr> + <td VALIGN=TOP>includeruntime</td> + <td VALIGN=TOP>Implicitly add the classes required to run jdepend + in forked mode. (Ignored if fork is disabled). Since Apache Ant 1.6.</td> + <td ALIGN=CENTER VALIGN=TOP>No, default is "no".</td> + </tr> + <tr> + <td VALIGN=TOP>classpathref</td> + <td VALIGN=TOP>the classpath to use, given as reference to a PATH defined elsewhere.</td> + <td ALIGN=CENTER VALIGN=TOP>No</td> + </tr> +</table> + +<h3><a name="nested">Nested Elements</a></h3> + +<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 +<code><classespath></code> replaces <code><sourcespath></code> and is used to define +the paths of compiled class code to analyze; the <code><sourcespath></code> +variable is still available in case you are using an earlier version +of JDepend. The <code><exclude></code> element can be used to set packages +to ignore (requires JDepend 2.5 or above).</p> + +<h3>Examples</h3> + +<blockquote> +<pre> +<jdepend classpathref="base.path"> + <classespath> + <pathelement location="build"/> + </classespath> +</jdepend> + +</pre> +</blockquote> + +<p>This invokes JDepend on the <code>build</code> directory, writing +the output on the standard output. The classpath is defined using a +classpath reference.</p> + +<blockquote> +<pre> +<jdepend outputfile="docs/jdepend.xml" fork="yes" format="xml"> + <sourcespath> + <pathelement location="src"/> + </sourcespath> + <classpath> + <pathelement location="classes"/> + <pathelement location="lib/jdepend.jar"/> + </classpath> +</jdepend> +</pre> +</blockquote> + +<p>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> + +<blockquote> +<pre> +<jdepend classpathref="base.path"> + <exclude name="java.*> + <exclude name="javax.*> + <classespath> + <pathelement location="build"/> + </classespath> +</jdepend> +</pre> +</blockquote> + +<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 +javax.* packages.</p> + + +</body> +</html> + + |