External Tools and Path Variables

Hello,

I am trying to set up some external tools (PMD and CheckStyle).

This works fine if I use absolute paths in the tool definitions.

For example, this is the "Parameters:" text for CheckStyle

-cp %CLASSPATH%;C:\checkstyle\checkstyle-3.5\checkstyle-all-3.5.jar
com.puppycrawl.tools.checkstyle.Main -c
c:\cvsTree\code\templates\TomoQuality_checkstyle.xml -r $FileDir$

This works fine.

Now I want to be able to use File | Export Settings ... to export this
so that other members of the developement team can run the same tool.

Because not every machine has the CheckStyle libraries in the same
place, I used "Path Variable" to define the path to the check style
libs. However, if I replace C:\checkstyle\checkstyle-3.5 with its "Path
Variable" as follows:

-cp %CLASSPATH%;%CheckStyle_Path%\checkstyle-all-3.5.jar
com.puppycrawl.tools.checkstyle.Main -c
c:\cvsTree\code\templates\TomoQuality_checkstyle.xml -r $FileDir$

This results in errors. So it doesn't look like I can use path variables
for external tool path specifications.

Does anyone have any advice for a different way to approach this problem?

Thank you,

Ted Hill

Please sign in to leave a comment.