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 32977] - Ant handles ".." in paths incorrectly
Date Thu, 06 Jan 2005 23:24:25 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=32977>.
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=32977





------- Additional Comments From ddevienne@lgc.com  2005-01-07 00:24 -------
I see your point. Since you're merely testing for the existence of a file, 
that's unfortunate. But then, if webapps/wsrf was in the same dir as the build 
file, itself in the root dir, your proposed change would make the condition be 
true, when you expect it 3 directories down. Don't you also find this 
disturbing, that you pick up something that your build file explicitly and 
statically states should be 3 directories down (or up, depending...) and is in 
fact collocated?

One way to deal with this would be to compute the actual filename the way you 
want prior to test it in the <condition>, using a small <script> or a smal 
custom task. You'd bypass the usual filename resolution code in Ant and use 
directly new File(dir, path) which worked as you want.

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