Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pmd - type resolution rules not running  RSS feed

 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36393
453
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
Sheriff
Posts: 36393
453
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
Sheriff
Posts: 36393
453
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!