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 19636] New: - wrong paths in zip-files
Date Mon, 05 May 2003 07:40:48 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=19636>.
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=19636

wrong paths in zip-files

           Summary: wrong paths in zip-files
           Product: Ant
           Version: 1.5.3
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: dvholten@computer.org


I filed this problem a while ago as #1899, which was closed as workforme.
But the problem still 
exists. Here is a build-file to reproduce the problem.
when you run it and look at the zip-file with 
winzip, you see that the
path- and filenames have their upper/lowercase changed. When you 
unpack this to
an empty directory, the unpacked pathnames will created with the names from 
zipfile. Windows still finds them, but java is confused.
----------------------
<project name="testzip" default = 
"makezip" basedir = "." >

<target name="delete" 
        description="delete directories lc, UC 
an Mc" >
  <delete dir="lc,UC,Mc" /> 
</target>

<target name="makefiles" 
        
description="some lower-, upper- and mixed-case files" >
        <mkdir dir="lc/lc" />
        <mkdir 
dir="lc/UC" />
        <mkdir dir="lc/Mc" />
        <mkdir dir="UC/lc" />
        <mkdir dir="UC/UC" />
        
<mkdir dir="UC/Mc" />
        <mkdir dir="Mc/lc" />
        <mkdir dir="Mc/UC" />
        <mkdir dir="Mc/Mc" 
/>
        <echo message="some text" file="lc/lctext.txt" />
        <echo message="some text" 
file="lc/UCTEXT.TXT" />
        <echo message="some text" file="lc/McText.Txt" />
        <echo 
message="some text" file="lc/lc/lctext.txt" />
        <echo message="some text" 
file="lc/UC/UCTEXT.TXT" />
        <echo message="some text" file="lc/Mc/McText.Txt" />

        
<echo message="some text" file="UC/lctext.txt" />
        <echo message="some text" 
file="UC/UCTEXT.TXT" />
        <echo message="some text" file="UC/McText.Txt" />
        <echo 
message="some text" file="UC/lc/lctext.txt" />
        <echo message="some text" 
file="UC/UC/UCTEXT.TXT" />
        <echo message="some text" file="UC/Mc/McText.Txt" />

        
<echo message="some text" file="Mc/lctext.txt" />
        <echo message="some text" 
file="Mc/UCTEXT.TXT" />
        <echo message="some text" file="Mc/McText.Txt" />
        <echo 
message="some text" file="Mc/lc/lctext.txt" />
        <echo message="some text" 
file="Mc/UC/UCTEXT.TXT" />
        <echo message="some text" file="Mc/Mc/McText.Txt" 
/>

</target>


<target name="makezip" depends="delete,makefiles" 
        
description="create zip-files with various upper/lower/mixed-case filnames" >

        <zip
          
zipfile="testfile.zip"
          includes = "**/*.txt,**/*.TXT,**/*.Txt"
          basedir="."
        
/>
</target>

</project>

Mime
View raw message