Defines DVSL task in pmd.xml.

project.properties catches pre-docs


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@208 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
David Dixon-Peugh
2002-07-03 19:32:05 +00:00
parent cfbf24a162
commit e5046e65cd
2 changed files with 11 additions and 2 deletions

View File

@ -10,6 +10,14 @@ will update documents on the Build Site.
-->
<project name="pmd" default="pre-build">
<target name="load-dvsl-task">
<taskdef
name="dvsl"
classname="org.apache.tools.dvsl.DVSLTask">
<classpath refid="maven-classpath" />
</taskdef>
</target>
<target name="pre-build"
depends="JavaCC" />
@ -49,15 +57,15 @@ will update documents on the Build Site.
</target>
<!-- Documentation Chores -->
<target name="pre-docs" depends="rule-docs" />
<target name="pre-docs" depends="load-dvsl-task,rule-docs" />
<target name="rule-docs">
<mkdir dir="${maven.gen.docs}/rules" />
<dvsl basedir="rulesets"
destdir="${maven.gen.docs}/rules"
extension=".xml"
includes="*.xml"
style="dvsl/rule-format.dvsl">
<include name="*.xml" />
</dvsl>
</target>

View File

@ -11,3 +11,4 @@ maven.docs.callback.pre-docs-quick.buildTarget=pre-docs
maven.docs.callback.pre-docs.buildFile=pmd.xml
maven.docs.callback.pre-docs.buildTarget=pre-docs