ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33764] - <available type="dir"> always fails
Date Mon, 28 Feb 2005 12:39:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33764>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33764





------- Additional Comments From junk@bbs.darktech.org  2005-02-28 13:39 -------
I finally tracked the problem down.

Seems to have been caused by a combination of Ant's colorful "properties may
only be set once" behavior, my own fault for not noticing that the property was
already set (to an incorrect value where the space in the filename was not
escaped). As well, I had this in the property file:

jdk15.home="C:/program files/java/jdk1.5.0_01"

Now, ignoring the fact that the space is unescaped, the actual problem is the
surrounding quotes around the value. Turns out that when <available> gets that
value, it does not interpret the quotes as escaping slashes and spaces. Instead,
it just dies with "unable to find path".

I'd like to recommend the following for avoid this errors in the future:

1) <available> should allow quotes to escape the value
2) Can you please add some sort of feature whereby Ant fails the build if
someone tries overriding the value of a property with a value different than
it's already set to? You can make this optional but I am hopeful we can have it
enabled by default. It would probably save a lot of people a lot of headaches.

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

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


Mime
View raw message