Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.3
-
Fix Version/s: 1.5
-
Labels:None
-
Environment:Maven 2.2.1,
jRockit (Java 6)
-
Number of attachments :
Description
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 fails.
<configuration>
<tasks>
<Unable to render embedded object: File (-- 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) not found. -->
<copy file="$
/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="$
/model.xml" overwrite="true" verbose="true" failonerror="false" />
</tasks>
</configuration>
Issue Links
- relates to
-
MANTRUN-120
sql task does not respect onerror=continue
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Link | This issue relates to MANTRUN-120 [ MANTRUN-120 ] |
| Assignee | Paul Gier [ pgier ] | |
| Fix Version/s | 1.5 [ 16504 ] |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Cannot Reproduce [ 5 ] |
I wasn't able to reproduce this using antrun 1.3 or the current trunk.
I added an integration test in r959863.