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 51829] URLResource.connect() logs as error when URL.openConnection() fails
Date Sun, 13 Nov 2011 19:54:25 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51829

Stephan Piesker <pieskste@zedat.fu-berlin.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #3 from Stephan Piesker <pieskste@zedat.fu-berlin.de> 2011-11-13 19:54:25
UTC ---
OK, I can reproduce this issue. But I am of the opinion it is correct. <import
optional="true"> means that the script should continue in the event of an
error.
The manual is:
Optional | If true, do not exist stop the build if the file does not, default
is false.

You want that the script will continue running in the event of an error.
It does this well and you know indicates that there is an error
when you import the file was foo.x.
The problem I see in the Tag <url>, because this would cause the error.
First, by the Tag <url> trying to open a file and the error happens there.
Import realize that something went wrong and continues.
In <import> there is one attribute that file names.
Why do you use <url>?
Hereby it should work:

<project>
     <import file="foo.x" optional="true"/>
</ project>

-- 
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