aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes pmd - type resolution rules not running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "pmd - type resolution rules not running" Watch "pmd - type resolution rules not running" New topic
Author

pmd - type resolution rules not running

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

PMD has type resolution rules that depend on reflection. It's supposed to be just a matter of using auxclasspath. I've tried both with and without. The only materials I can find online imply it doesn't work out of the box. Any ideas?

My build script:


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

The comment in the above linked blog is actually correct. I was adding the asm/jaxen jars to the wrong classpath. I had added them to the classpath of the Java process that I use to launch Ant (which is what I had always done in the past.) It needed to literally be in the classpath of the taskdef.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

I also learned that the current directory is included in the classpath by default and classpath is ignored if you run in single CPU mode. A day of learning.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pmd - type resolution rules not running
 
Similar Threads
Problem in Maven2 pom for converting ejb2.1 project into sources.
"Could not create task of type: echo"
Assignment submission file structure verification / ant build.xml
ant exception
package javax.ejb does not exist