1

Trying to add suppressions.xml to my checkstyle. However I am not able to pick the Workspace-Path to my suppressions.xml File.

<module name="SuppressionFiler">
<property name="file" value="${workspace_loc}/com.test.checkstyle/conf/suppressions.xml"/>
</module>

I always get an Error with:

Error running builder 'Checkstyle Builder' on project 'Checkstyle_Test'. unable to parse configuration stream - Property ${workspace_loc} has not been set.

I also don't have access to ${buildir}.

How can I find out the workspace-project directory?

Edit: I am finding the suppressions.xml, if I type in the total path.

3
  • 1
    Not sure, but I guess you need to use ${config_loc}/suppressions.xml. ${config_loc} is a variable of Eclipse and it will refer to the same directory where the checkstyle.xml is present. Commented Feb 18, 2015 at 10:33
  • ty did work. i also had to add 'conf' folder to my build.properties, as bin.includes Commented Feb 19, 2015 at 8:52
  • Glad to know. Will post it as an answer. Commented Feb 19, 2015 at 9:06

1 Answer 1

1

Instead of workspace_loc, you can use config_loc as: ${config_loc}/suppressions.xml.

${config_loc} is a variable of Eclipse and it will refer to the same directory where the checkstyle.xml is present.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.