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

fail on error?

Guest
Apr 09, 2010 Apr 09, 2010

Copy link to clipboard

Copied

I'm wondering if, like pmd, flexpmd has a notion of fail.on.error setting?

i.e. using ant to invoke pmd I might do

<antcall target="pmd">
            <param name="fail.on.error" value="false"/>
</antcall>

One might want to have a daily build fail on flexpmd errors etc.

TOPICS
FlexPMD

Views

699

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 ,
Apr 09, 2010 Apr 09, 2010

Copy link to clipboard

Copied

Hi,

Yes there is one: failOnError

You should be good to go with that.

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 ,
Apr 14, 2010 Apr 14, 2010

Copy link to clipboard

Copied

Hi Xavier,

We've been using failOnError with some degree of success, but there is a problem..

This parameter causes the build to fail immediately. As a result the xslt transformation task to generate the report of the failing run isn't executed.

We'd rather fail the build in a similar way to the way we fail our flexUnit run, by setting a fail task up at the end of our macrodef:

<fail if="flexPMD.failed" message="PMD failed - check reports"/>

But this would obviously require flexPMD to populate some kind of environment variable with its status.

Is this possible at the moment?

kind regards,


Espen

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 ,
Apr 16, 2010 Apr 16, 2010

Copy link to clipboard

Copied

LATEST

Hi Espen,

No it is not possible at the moment.

Feel free to create a enhancement for that.

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