85b25d012b
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1938 51baf565-9d33-0410-a72c-fc3788e3496d
46 lines
1.1 KiB
XML
46 lines
1.1 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<project default="java:jar"
|
|
xmlns:j="jelly:core"
|
|
xmlns:m="maven"
|
|
xmlns:doc="doc"
|
|
xmlns:maven="jelly:org.apache.maven.jelly.tags.project.MavenTagLibrary">
|
|
|
|
|
|
<goal name="init-pmd-tag">
|
|
<taskdef
|
|
name="pmd"
|
|
classname="net.sourceforge.pmd.ant.PMDTask">
|
|
<classpath>
|
|
<pathelement location="target/classes" />
|
|
<pathelement location="." />
|
|
</classpath>
|
|
</taskdef>
|
|
</goal>
|
|
|
|
<goal name="pmd-site" prereqs="pmd:ruleset-docs">
|
|
<attainGoal name="site:generate" />
|
|
</goal>
|
|
|
|
<preGoal name="site:generate">
|
|
<attainGoal name="pmd:ruleset-docs"/>
|
|
</preGoal>
|
|
|
|
<!--<goal name="pmd:ruleset-docs" prereqs="init-dvsl-tag">-->
|
|
<goal name="pmd:ruleset-docs">
|
|
<echo message="hi"/>
|
|
<doc:jsl
|
|
input="rulesets/basic.xml"
|
|
output="rules/basic.xml"
|
|
stylesheet="etc/dvsl/rule-format.jsl"
|
|
omitXmlDeclaration="true"
|
|
outputMode="xml"
|
|
prettyPrint="true"
|
|
/>
|
|
<echo message="bye"/>
|
|
</goal>
|
|
|
|
|
|
</project>
|
|
|