Skip to main content
Participant
Aug 11, 2010 1:56 PM UTC
Answered

Inspecting test tree

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 is closed to new replies. Start a new post to keep the conversation going.
Xavier AgnettiCorrect answer
Inspiring
Aug 11, 2010 5:40 PM UTC

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

4 replies

TomSchober
Participant
Aug 11, 2010 2:16 PM UTC

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>
Translate
gwright10Author
Participant
Aug 11, 2010 4:16 PM UTC

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

Translate
Xavier AgnettiCorrect answer
Inspiring
Aug 11, 2010 5:40 PM UTC

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

Translate