<jdepend classpathref="base.path"> <sourcespath> <pathelement location="src"/> </sourcespath> </jdepend>This invokes JDepend on the src directory, writing the output on the standard output. The classpath is defined using a classpath reference.
<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>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.