This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pmd - type resolution rules not running

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33697
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33697
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 33697
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic