Skip to main content
Participant
August 11, 2010
Answered

Inspecting test tree

  • August 11, 2010
  • 1 reply
  • 986 views

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)?

This topic has been closed for replies.
Correct answer Xavier Agnetti

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.

Cheers,

Xavier

1 reply

TomSchober
Participant
August 11, 2010

In your POM you can add a configuration option:

<plugin>
     <groupId>com.adobe.ac</groupId>
     <artifactId>flex-pmd-maven-plugin</artifactId>
     <version>1.1</version>
     <configuration>
          <ruleSet>${basedir}/your-flex-pmd-ruleset.xml</ruleSet>
               <sourceDirectory>${basedir}/src</sourceDirectory>
     </configuration>
</plugin>
gwright10Author
Participant
August 11, 2010

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

Xavier AgnettiCorrect answer
Adobe Employee
August 11, 2010

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.

Cheers,

Xavier