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:
12
pmd/pmd.xml
12
pmd/pmd.xml
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user