You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/04/08 09:54:42 UTC

DO NOT REPLY [Bug 49070] New: failonerror doesn't work for Copy task

https://issues.apache.org/bugzilla/show_bug.cgi?id=49070

           Summary: failonerror doesn't work for Copy task
           Product: Ant
           Version: 1.8.0
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: res1st@web.de


The following copy fails the build, if not file for fileDoesNotExist*.jar is
found.

<copy tofile="d:\tmp\test.jar" failonerror="false">
    <fileset dir="D:\tmp">
       <filename name="fileDoesNotExist*.jar"/>
    </fileset>
</copy>

Reason:
The method validateAttributes of class copy doesn't check for failonerror and
always throws an build exception.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49070] failonerror doesn't work for Copy task

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49070

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.8.1

--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2010-04-09 04:44:53 UTC ---
fixed with svn revision 932241

As a workaround you can use todir instead of tofile and a nested mapper to get
the file name right.  With todir failonerror will work as expected in 1.8.0 and
earlier.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.