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 32487] - <updatedate> <mapper> requires OS-specific slashes
Date Mon, 06 Dec 2004 18:41:33 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=32487>.
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=32487





------- Additional Comments From peterreilly@apache.org  2004-12-06 19:41 -------
Actually in a number of important ways windows file system is case-sensitive.
For example, with a class called Test.class in the current directory
one can do "java -cp . Test", but *not* "java -cp . test" on the
command line.

The pattern matching in ant (the include element and includes attribute
in fileset, patternset etc and the name attribute in the filename selector)
are case-sensitive (in unix or on windows - or macos).

There is *zero* chance that they will be made case-insensitive on windows. So
there is also no change that the glob mapper will be case-insensitive, unless
directed to do so by a script author.

The case for magic converting of slashes is much stronger as this is done in
a number of places and it is one of the FAQs on globmapper.
The standard answer is to do 
<mapper type="glob" 
   from="DesktopBeautifierShared${file.separator}source${file.separator}*.java"
   to="java/classes/*.class"/>
but this is long-winded and not nice.
<globmapper from="DesktopBeautifierShared/source/*.java" 
            to="java/classes/*.class" ignoredirchar="yes"/>
is a little better.



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