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 16841] - built-in properties ${user.dir} and ${basedir} capitalize drive letters differently
Date Wed, 12 Feb 2003 14:42:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16841>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16841

built-in properties ${user.dir} and ${basedir} capitalize drive letters differently

bodewig@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From bodewig@apache.org  2003-02-12 14:42 -------
To fix your immediate problem, use the casesensitive attribute of <equals>.

More general.  user.dir is a Java system property and Ant will leave it untouched.
basedir is one of Ant's own properties - and this is where Ant enforces its
contract for file-names:  If Ant knows that it is dealing with a file, it is
going to "normalize" the filename.  "normalize" involves bending slashes into
the "right" direction and capitalizing the drive letter on Windows (among other
things).

If you don't want to go for case-insensitive matches, you must "normalize"
user.dir as well, which can be done via

<property name="user.dir.normalized" location="${user.dir}"/>

Mime
View raw message