Menu

Relative ruleset file path outside project

users
Anonymous
2012-06-05
2014-03-31
  • Anonymous

    Anonymous - 2012-06-05

    Hello,

    I'd like to share a ruleset file between several project.
    With maven and PMD I have no issue but I don't manage to configure it in eclipse.

    When I use the main preference page it keeps the full path. I'd rather avoid that to share the simple config file between people who don't have the same workspace location.
    Eclipse uses a .pmd file at the root of each project. I'd like to have something like :

    <?xml version="1.0" encoding="UTF-8"?>
    <pmd>
        <useProjectRuleSet>true</useProjectRuleSet>
        <ruleSetFile>..\pmd.ruleset.xml</ruleSetFile>
        <includeDerivedFiles>false</includeDerivedFiles>
        <violationsAsErrors>true</violationsAsErrors>
    </pmd>
    

    But it doesn't work.
    Anyone encoutered this issue? Any ideas?
    Thanks,
    Pascal

     
  • Brian R

    Brian R - 2012-06-05

    I'll try and have a look at it, time permitting.  

     
  • Anonymous

    Anonymous - 2012-06-07

    Thanks.
    don't hesitate to ask any missing info.

     
  • hkais

    hkais - 2014-03-31
     

    Last edit: hkais 2014-04-01

Log in to post a comment.