• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Inspecting test tree

New Here ,
Aug 11, 2010 Aug 11, 2010

Copy link to clipboard

Copied

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

TOPICS
FlexPMD

Views

854

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Aug 11, 2010 Aug 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

Votes

Translate

Translate
Community Beginner ,
Aug 11, 2010 Aug 11, 2010

Copy link to clipboard

Copied

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 11, 2010 Aug 11, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 11, 2010 Aug 11, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 11, 2010 Aug 11, 2010

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines