Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuring PMD on WSAD

 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
Can anyone help me with the configuration of PMD (the source code analyzer) with WSAD 5.1.1
The PMD help says that there is a menu option Help>Software Updates>Find and Install .. but i cant see anything like that

regards
Dharmesh
 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
Actually i wanted to know what are the steps taken for integrating PMD in WSAD


regards
Dharmesh
 
Naveen Gopi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please find how to install PMD plugin in Websphere Studio Application Developer 5.1 (WSAD v 5.1)

Configure WSAD for access to Internet
1)Go to Window -> Preferences -> Install/Update.
2)For each set Proxy address and Proxy Port.

PMD for WSAD install instructions
1. Start WSAD.
2. Start the installation procedure : select the Help -> Software Updates - >Update manager
3. We have a Feature Updates Window.
4. Inside it right click on Sites to visit -> New -> Site Bookmark´┐Ż
5. In New Site Bookmark window enter the following details
Name: PMD (AnyName)
Address as: http://pmd.sourceforge.net/eclipse
Book Mark Type as: Eclipse Update Site
6. We get a PMD icon. Expanding it reveals two: PMD for Eclipse 2 and PMD \
for Eclipse 3.
7. PMD Eclipse 3 is not supported and hence select PMD Eclipse 2.
8. Now Install PMD in WSAD.
9. Accept the terms of the license agreements and click Next.
10. A warning appears telling the feature is not signed. Ignore and click
Install to continue.
11. Accept to restart the workbench to load PMD into the workbench.

WSAD is restarted and the PMD plug-in is correctly installed.

How to run PMD tool?
1) In Package Explorer right click on any java file and we can see PMD ->
Check Code With PMD.
2) Similarly this can be done for an entire project too.

Please note that WSAD v 5.1 doesn't support PMD for eclipse 3. It has support only for eclipse 2.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic