ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Piesker" <piesk...@zedat.fu-berlin.de>
Subject Issue 51829
Date Thu, 17 Nov 2011 21:23:20 GMT
Idea for solving the issue (51 829).
Problem is that an error log is generated, although this is given by the
user as optional. The following code:
<import optional="true">
    <url file="foo.x"/>
</ import>
The import class first checks whether the file exists from url. And right
there is the problem. The method of isExists URLResource class is called,
and this in turn uses the connect method of URLResource. In this attempt
to open a file and a failure, he said brings the error log. I can believe
that you can not just call the connect method in isExists and therefore
the solution must sign a modified function. This method then returns true
or false.

So solution:
URLResource.java file line 229:
connect away and try to open the file. For failure to return a false and a
true success.

question:
Where should I send the changed file?
Should I make a JUnittest this?


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message