Browse Source

Merge jdepend report generation into main build file.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272095 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
98801ee840
2 changed files with 23 additions and 33 deletions
  1. +23
    -0
      proposal/myrmidon/build.xml
  2. +0
    -33
      proposal/myrmidon/depend.xml

+ 23
- 0
proposal/myrmidon/build.xml View File

@@ -676,6 +676,29 @@ Legal:


</target> </target>


<target name="jdepend" description="Generate Dependency Analysis Report">

<path id="java.src">
<pathelement location="src/test"/>
<pathelement location="src/java"/>
</path>

<!-- this invocation of jdepend requires the CVS version of ant for the xml format -->
<jdepend outputfile="${build.dir}/jdepend-results.xml" format="xml" fork="yes">
<classpath refid="project.class.path"/>
<sourcespath>
<path refid="java.src" />
</sourcespath>
</jdepend>

<property name="build.reports" value="${build.dir}/reports"/>
<mkdir dir="${build.reports}/jdepend"/>
<style in="${build.dir}/jdepend-results.xml"
processor="trax"
out="${build.reports}/jdepend/delete-me.txt"
style="${ant.home}/etc/jdepend-frames.xsl"/>
</target>

<!-- Creates the distribution --> <!-- Creates the distribution -->
<target name="dist-lite" <target name="dist-lite"
depends="jars" depends="jars"


+ 0
- 33
proposal/myrmidon/depend.xml View File

@@ -1,33 +0,0 @@
<project default="main" basedir=".">

<!--
Give user a chance to override without editing this file
(and without typing -D each time he compiles it)
-->
<property file=".ant.properties"/>
<property file="${user.home}/.ant.properties"/>

<path id="project.class.path">
<pathelement path="${java.class.path}" />
<fileset dir="lib">
<include name="*.jar" />
</fileset>
<pathelement path="build/classes" />
</path>

<!-- Main target -->
<target name="main" depends="style" />

<!-- lets see what is available -->
<target name="jdepend">
<jdepend outputfile="build/jdepend.xml" format="xml" fork="yes">
<classpath refid="project.class.path"/>
<sourcespath>
<pathelement location="src/java" />
</sourcespath>
</jdepend>

<style in="build/jdepend.xml" processor="trax" out="build/jdepend.html" style="../../src/etc/jdepend.xsl"/>
</target>

</project>

Loading…
Cancel
Save