You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "thierry lach (JIRA)" <ji...@codehaus.org> on 2005/07/28 16:24:57 UTC

[jira] Created: (MAVEN-1652) goal that executes after failure of another goal

goal that executes after failure of another goal
------------------------------------------------

         Key: MAVEN-1652
         URL: http://jira.codehaus.org/browse/MAVEN-1652
     Project: maven
        Type: Wish
 Reporter: thierry lach
    Priority: Minor


It would be handy to have a postGoal which executes only after the failure of a goal (postFailure?).  This could be used for a number of things - send emails, analayze logs, print comments on the console indicating what may be the problem.

An example:

   <postFailure name="test:test">
     <echo>
One possible reason the tests failed is that you do not have the correct tables in your test schema.

Make sure that have run the goal 'project:create-test-schema' before running the tests.
     </echo>
   </postFailure>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MAVEN-1652) goal that executes after failure of another goal

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1652?page=all ]
     
Brett Porter closed MAVEN-1652:
-------------------------------

     Assign To: Brett Porter
    Resolution: Won't Fix

there are 2 ways you can do this:
- run a reactor with ignoreFailures=true and use ${failedProjects} to do something with it
- use jelly's j:catch tag to catch the failure and act appropriately

> goal that executes after failure of another goal
> ------------------------------------------------
>
>          Key: MAVEN-1652
>          URL: http://jira.codehaus.org/browse/MAVEN-1652
>      Project: maven
>         Type: Wish
>     Reporter: thierry lach
>     Assignee: Brett Porter
>     Priority: Minor

>
>
> It would be handy to have a postGoal which executes only after the failure of a goal (postFailure?).  This could be used for a number of things - send emails, analayze logs, print comments on the console indicating what may be the problem.
> An example:
>    <postFailure name="test:test">
>      <echo>
> One possible reason the tests failed is that you do not have the correct tables in your test schema.
> Make sure that have run the goal 'project:create-test-schema' before running the tests.
>      </echo>
>    </postFailure>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org