Using PMD Plug-in with Pramati Studio


PMD tool is a plug-in for Pramati Studio. It enables you to run PMD-1.5 tool to scan Java source code for potential problems like unused local variable, unused private methods etc, as defined in the rules set. Download PMD-1.5 executable and follow the instructions given in this document.

Importing PMD tool to Pramati Studio

To import PMD tool:
  1. Select Tools > Configure from the main menu.
  2. In the Configure panel, click Import Tool.
  3. In the File Chooser, browse and select the pmd.jar located in the lib\unsupported folder.

Configuring PMD

To configure PMD in Pramai Studio:
  1. Select File > IDE Options from the main menu.
  2. In the Options panel, select PMD. A new panel opens on the right. Provide the following information:

Using PMD in Pramati Studio

Now, PMD tool can be used on the Java source files and directories creating Java Source files in the desk as follows:
  1. Right click on the the desk element and select Running PMD. This runs PMD-1.5 on the given Java file or all the Java source files if the selected node is a directory.
  2. While PMD is running, the output panel displays the running state and results are shown after execution. The output panel shows the results in a tree format with the name of the PMD file as root.
  3. Navigate to the violation line of the files by using navigation keys of output panel. If no violation is found, a message stating the same, appears.
  4. If any error comes in the execution or parsing ,the same is delegated to the user through the dialog box.