You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2006/09/15 17:28:27 UTC

DO NOT REPLY [Bug 32977] - Ant handles ".." in paths incorrectly

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


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.7




------- Additional Comments From peterreilly@apache.org  2006-09-15 15:28 -------
I am not too sure when this was fixed, but in
the current ant 1.7 code the following works:
<project name="foo" >
  <available file=".emacs" filepath="../../../../../.."
             property="found"/>
  <echo>found: ${found}</echo>
</project>

(c:\.emacs exists).

and 
<project name="foo" basedir="C:/">
  <property name="my.dir" location=".."/>
   <echo>${my.dir}</echo>
</project>

echos:
     [echo] C:\..


Note:
using ../../../../../ is a long standing method,
I used it recently in an ftp script, the ftp
server did not support an absolute path, one had
to enter a relative path, - but the home directory
of the login account varied from machine to machine
sometimes '/' and sometimes '/home/account',
used ../../../toplevel/file worked!

<project name="foo" 

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