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

Fileset in flexPMD ant task?

Explorer ,
Oct 07, 2010 Oct 07, 2010

Copy link to clipboard

Copied

Hi,

How can I include/exclude certain files in the flexPMD ant task?  the task doesn't support a nested fileset attribute.  Essentially I want to exclude any files with "test" in the name.

Thanks

TOPICS
FlexPMD

Views

4.0K

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
Community Beginner ,
Oct 07, 2010 Oct 07, 2010

Copy link to clipboard

Copied

Not currently possible...

As a workaround you have two options:

If your tests and code are in separate dirs... just point flexpmd at your source folders and not your test folders

Or

If your tests are mixed in with your code...

- use ants copy task to copy the code you want to run flexpmd on to a diff dir

- run flexpmd on that dir

- delete that new dir when flexpmd completes

Incidentally you can still achieve package level access by putting your test code in a diff folder than your source folder... that way you can still have your test code in the same package

src/com/company/project/Code.as

test/com/company/project/CodeTest.as

hth

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 ,
Oct 08, 2012 Oct 08, 2012

Copy link to clipboard

Copied

LATEST

I have multiple source folders in my project. Besides, I have a lib folder where all swc are stored. How can I configure FlexPMD to use multiple source folders AND swc libraries? I am using PMD version 1.2

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