maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Gier (JIRA)" <>
Subject [jira] Closed: (MANTRUN-119) copy task does not respect failonerror=false
Date Fri, 02 Jul 2010 05:45:32 GMT


Paul Gier closed MANTRUN-119.

    Resolution: Cannot Reproduce

I wasn't able to reproduce this using antrun 1.3 or the current trunk.
I added an integration test in [r959863|].

> copy task does not respect failonerror=false
> --------------------------------------------
>                 Key: MANTRUN-119
>                 URL:
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Maven 2.2.1,
> jRockit (Java 6)
>            Reporter: René Zanner
>            Assignee: Paul Gier
>            Priority: Blocker
>             Fix For: 1.5
> When defining a copy task, the antrun plugin propagates it's failure although "failonerror"
is set to true: the maven build stops.
> In my case I try to copy a file which does not exist in some maven build situations.
The build should not fail but try to copy a different file instead. With antrun 1.2 it still
works (the build continues with the next copy task), but with the current version the build
> <configuration>
>     <tasks>
>         <!-- in single project builds, the file to be copied has a different name
- reactor build with antrun 1.3 fails here, though failonerror is false! -->
>         <copy file="${}/dependency/model.xml" tofile="${}/model.xml"
overwrite="true" verbose="true" failonerror="false" />
>         <!-- in rector builds, the name of the file contains the correct maven type
(xmi) and the version number -->
> 	<copy file="${}/dependency/model-${project.version}.xmi" tofile="${}/model.xml"
overwrite="true" verbose="true" failonerror="false" />
>     </tasks>
> </configuration>

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message