ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47362] New: Copy task failonerror does not fail for <resource><url>....</url></resource>
Date Fri, 12 Jun 2009 14:33:57 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47362

           Summary: Copy task failonerror does not fail for
                    <resource><url>....</url></resource>
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: matt.kirkley@gmail.com
                CC: matt.kirkley@gmail.com


<copy todir="my_dir" failonerror="true" flatten="true">
 <resources>
   <url url="http://iAmABadURL/ThatDoesNotExist/ConnectionRefused/myfile.txt"
/>
 </resources>
</copy>

If you have a copy task that copies from a URL where the server is down or does
not exist a java.net.UnknownHostException, or a java.net.ConnectException will
be thrown.

Even though these exceptions are thrown and failonerror="true" in the copy
task, the build will continue on.

Now lets say the URL is valid and the file doesn't exist on the server.  A
filenot found exception will be thrown and the build will fail as it should.

This looks like a bug to me?

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

Mime
View raw message