• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pmd - type resolution rules not running

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34965
378
Eclipse IDE Java VI Editor
  • 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: 34965
378
Eclipse IDE Java VI Editor
  • 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: 34965
378
Eclipse IDE Java VI Editor
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic