2008-04-17 17:38:26 +00:00
|
|
|
<project name="generate-jdk4-pom"
|
2011-12-01 09:32:17 +00:00
|
|
|
default="generate-xdocs">
|
2008-04-17 17:38:26 +00:00
|
|
|
|
2011-12-01 09:32:17 +00:00
|
|
|
<target name="generate-xdocs">
|
|
|
|
<path id="tools.classpath">
|
|
|
|
<fileset dir="${lib}">
|
|
|
|
<include name="pmd-build-*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</path>
|
2008-04-17 17:38:26 +00:00
|
|
|
|
2011-12-01 09:32:17 +00:00
|
|
|
<taskdef name="pmd-build"
|
|
|
|
classname="net.sourceforge.pmd.ant.PmdBuildTask">
|
|
|
|
<classpath refid="tools.classpath"/>
|
|
|
|
</taskdef>
|
2011-12-01 09:38:06 +00:00
|
|
|
<echo>Generating documentation into ${target}, into ${rules.src}</echo>
|
2011-12-01 09:32:17 +00:00
|
|
|
<mkdir dir="${target}"/>
|
2011-12-05 23:20:59 +00:00
|
|
|
<pmd-build siteXml="${siteXml}"
|
|
|
|
rulesDirectory="${rules.src}"
|
2011-12-01 09:32:17 +00:00
|
|
|
target="${target}"/>
|
|
|
|
</target>
|
2008-04-17 17:38:26 +00:00
|
|
|
|
2011-12-01 09:32:17 +00:00
|
|
|
<!--
|
|
|
|
Unit test of this task
|
2011-12-01 09:37:28 +00:00
|
|
|
|
|
|
|
Should be run from tools/ant directory
|
2011-12-01 09:32:17 +00:00
|
|
|
-->
|
|
|
|
<target name="test">
|
2008-04-17 17:38:26 +00:00
|
|
|
|
2011-12-01 09:32:17 +00:00
|
|
|
<antcall target="generate-xdocs">
|
2011-12-01 09:37:28 +00:00
|
|
|
<param name="target" value="target-test"/>
|
|
|
|
<param name="lib" value="../lib"/>
|
2011-12-01 09:38:06 +00:00
|
|
|
<param name="rules.src" value="../../src/site/xdocs"/>
|
2011-12-01 09:32:17 +00:00
|
|
|
</antcall>
|
|
|
|
</target>
|
2008-04-17 17:38:26 +00:00
|
|
|
|
|
|
|
</project>
|