4 Replies Latest reply on Aug 11, 2010 1:18 PM by gwright10

    Inspecting test tree

    gwright10 Level 1

      When I run FlexPMD 1.1 via Maven, it only checks the main source tree (src/main/flex).  How can I get it to also check the test source tree (src/test/flex)?

        • 1. Re: Inspecting test tree
          TomSchober Level 1

          In your POM you can add a configuration option:



          1 person found this helpful
          • 2. Re: Inspecting test tree
            gwright10 Level 1

            Tried that.  Build breaks and I get:


            [INFO] Error configuring: com.adobe.ac:flex-pmd-maven-plugin. Reason: ERROR: Can not override read-only parameter: sourceDirectory in goal: flex-pmd:report

            • 3. Re: Inspecting test tree
              Xavier Agnetti Adobe Employee

              We removed the read-only flag on this parameter. It is still  defaulted to the build sourceDirectory though.

              Tom's solution would now work then.


              The trunk and the snapshot repository have been updated.





              • 4. Re: Inspecting test tree
                gwright10 Level 1

                This works as far as running the rules, but the pmd.xml reports the packages wrong (they all start with main.flex or test.flex).  Not a huge deal -- I can just add two executions, but then I'll end up with two files.