ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
Subject Re: cvs commit: ant/src/testcases/org/apache/tools/ant DirectoryScannerTest.java
Date Tue, 22 Jul 2003 12:12:26 GMT
> OK.  But for case-insensitive file systems it doesn't matter, right?
>
The need for this getCanonicalFile()

suppose you are building on Windows a jar file
in your build.xml you have
<jar destfile="some.jar">
   <include="ALPHA/BETA/BETA.XML"/>
</jar>

the jar file will then contain ALPHA/BETA/BETA.XML and it will make a big
difference on UNIX, and it will also make a difference under Windows if you
extract the jar in a location where there is no directory called alpha, then
the new entry will be really called ALPHA/BETA/BETA.XML

Conclusion : if we remove the getCanonicalFile, then we are breaking
compatibility of behavior with ant 1.5.3 and earlier. It is possible to do
that, and write in WHATSNEW :

caution : the case of relative paths in filesets will be determined by the
case of the include patterns used to define the fileset.

> I don't know for sure.  Let me see, yep, behavior on MacOS X using HFS
> is the same as on Windows.
>



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


Mime
View raw message