Tom Copeland's Recent Posts

RSS Feeds

« Ruby on Rails and Fedora Core 5 | Main | Upgrading Rails to Ruby 1.8.4 »

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451d3c069e200e55070a9fb8834

Listed below are links to weblogs that reference PMD 3.6 released - support for checking JSP/JSF pages, five new rules, lots o' bugfixes:

Comments

Does JSP support work at all???

Hi there,
I've been giving the new JSP rules in PMD 3.6 a try and I just couldn't make it work.
I wrote a JSP file that should result in a bunch of errors (I actually copied the examples that trigger the rules from the documentation) but to no avail.
I can see that the JSP gets parsed (since the process fails when I make my JSP non-XHTML) and that the rules gets loaded (thanks to the -debug option), but for some reason I always get a no-errors report (using both an ant script and from the command line with the -jsp option).
Is there something I am missing?

Thank you very much,
Dani Palacios, Java developer

Hi Dani -

Hm, I saw your post on the forums... let's discuss there since more folks will see it...

Yours,

Tom

For future visitors, you can follow the discussion here:

http://sourceforge.net/forum/message.php?msg_id=3681267

And to summarize, use the -jsponly flag:

=============================
$ ./pmd.sh test.jsp text jsp -jsponly
/home/tom/pmd/pmd/bin/test.jsp:4 Use JSP comments instead of HTML comments
=============================

Yes Tom, you're right (I didn't find the PMD forum at first, so I wrongly posted it here). I was going to post a comment here with the URL of the forum:
http://sourceforge.net/forum/forum.php?thread_id=1480655&forum_id=188192

Hi Dani -
No problem! And I hope you'll report any problems you find with the JSP functionality; that's very new code, so there may well be some problems there...
Yours,
Tom

The comments to this entry are closed.