ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sengupta, Avik <Avik.Sengu...@Dresdner-Bank.com>
Subject Problem in W2K with offline filesystem
Date Fri, 11 Jan 2002 05:21:28 GMT
This is not necessarily an ant issue, but is interesting nevertheless, so i
thought i would send it around.  

Yesterday I took my windows 2000 laptop home after setting a network share
(a samba mounted Solaris filesystem) to be made available offline. 

Obviously i use ant for all projects :), so as i was developing, i ran "ant
jar" and got the following error:

jar:
IOException getting canonical path for E:\projects\dokit\mirdesigner.jar:
There
are no more files
      [jar] Building jar: E:\projects\dokit\mirdesigner.jar

BUILD FAILED

E:\projects\app\build.xml:31: Problem creating jar: duplicate entry:
com/webte
ksoftware/app/designer/gui/resources/about.gif (and the archive is probably
corr
upt but I could not delete it)
--- Nested Exception ---
java.util.zip.ZipException: duplicate entry:
com/webteksoftware/app/designer/gui
/resources/about.gif
        at
java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:165)
        at org.apache.tools.ant.taskdefs.Zip.zipFile(Zip.java:455)
        at org.apache.tools.ant.taskdefs.Zip.zipFile(Zip.java:474)
        at org.apache.tools.ant.taskdefs.Jar.zipFile(Jar.java:130)
        at org.apache.tools.ant.taskdefs.Zip.addFiles(Zip.java:260)
        at org.apache.tools.ant.taskdefs.Zip.addFiles(Zip.java:549)
        at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:186)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 31 seconds

The jar was not created. However other tasks, such as delete, copy and javac
worked just fine. However, when i first ran compile in disconnected mode, i
got plenty of warnings about files modified in the future. I guess the W2K
offline filesystem needs some work!

My target definition is as follows:

<target name="jar" depends="init,compile">
        <jar jarfile="app.jar" compress="true" manifest="manifest.mf">
            <fileset dir="${build.dir}" >
                <include name="**/designer/**/*.*" />
                <include name="**/utils/**/*.class" />
           </fileset>
           <fileset dir="${src.dir}">
               <include name = "**/*.gif" />
               <include name = "**/*.jpg" />
               <include name ="app.hs" />
               <include name="apptoc.xml" />
           </fileset>
           <fileset dir="${basedir}/docs">
                <include name ="manual/**/*" />
                <exclude name="**/.nbattrs" />
           </fileset>
        </jar>
</target>

Anyone seen anything like this? Thanks
-
Avik

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


Mime
View raw message