Apply MAVEN-1008:

Patch to add the project dependancies to the pmd classpath.
This should allow a custom ruleset jar file that is defined as a dependancy to be added to the pmd classpath.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114303 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2003-11-10 14:16:40 +00:00
1 parent 204e42e7e1
commit 9bafc7f7e8
3 files changed
+19 -8

No files matched your search

+12 -7
View File
@@ -61,15 +61,20 @@
<mkdir dir="${maven.build.dir}"/>
<mkdir dir="${maven.docs.dest}"/>
<!-- Setup the classpath for pmd plugins -->
<path id="pmd-classpath">
<pathelement path="${plugin.getDependencyPath('pmd:pmd')}" />
<pathelement path="${plugin.getDependencyPath('jaxen:jaxen')}" />
<pathelement path="${plugin.getDependencyPath('saxpath:saxpath')}" />
<pathelement path="${pom.getDependencyClasspath()}" />
<path refid="maven.dependency.classpath" />
</path>
<!-- Define a PMD task with the rulesets and all jars in the
classpath -->
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask">
<classpath>
<pathelement location="${plugin.getDependencyPath('pmd:pmd')}"/>
<pathelement location="${plugin.getDependencyPath('jaxen:jaxen')}"/>
<pathelement location="${plugin.getDependencyPath('saxpath:saxpath')}"/>
</classpath>
</taskdef>
<taskdef name="pmd"
classpathref="pmd-classpath"
classname="net.sourceforge.pmd.ant.PMDTask" />
<!-- Run the PMD task - need a way to define the rulesets dynamically -->
<echo>Running the PMD task with ${maven.pmd.rulesetfiles} ...</echo>
+1 -1
View File
@@ -5,7 +5,7 @@
<pomVersion>3</pomVersion>
<id>maven-pmd-plugin</id>
<name>Maven PMD Plug-in</name>
<currentVersion>1.2</currentVersion>
<currentVersion>1.3-SNAPSHOT</currentVersion>
<description>This plugin provides a more or less seamless integration with Maven and the PMD static source code analyzer.</description>
<shortDescription>Maven Plugin for PMD</shortDescription>
<url>http://maven.apache.org/reference/plugins/pmd/</url>
+6
View File
@@ -8,6 +8,12 @@
<body>
<release version="1.3" date="in CVS">
<action dev="dion" type="update">
Apply MAVEN-1008. Allow for custom rulesets in the classpath.
</action>
</release>
<release version="1.2" date="2003-09-20">
<action dev="vmassol" type="update">
Upgraded to use PMD 1.2.1.