ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Ellsworth <sc...@alodar.com>
Subject Zip exceptions from Depend when "includes" blank
Date Wed, 15 May 2002 16:37:52 GMT
Hi, all.

I know there has been some discussion of failures from Dependset, but I 
am not sure the following problem I am having with Depend is the same.

With the following task:

   <target name="depend">
     <mkdir dir="${compile.depcache}"/>
     <depend
       srcdir="${compile.source}"
       destdir="${compile.classes}"
       cache="${compile.depcache}"
       closure="yes"
       excludes="${compile.excludedFiles}"
       includes="${compile.includedFiles}">
       <classpath>
         <fileset dir="${depend.product.dir}" 
includes="${depend.product.classpath}"/>
       </classpath>
     </depend>
   </target>

and with

[echoproperties] depend.product.classpath=
[echoproperties] 
depend.product.dir=/Users/work/Documents/coding/isis/source/metagraph/persistence/
persistable/../../../products

I get the exceptions:

depend:
    [depend] java.util.zip.ZipException: error in opening zip file
    [depend]     at java.util.zip.ZipFile.open(Native Method)
    [depend]     at java.util.zip.ZipFile.<init>(ZipFile.java:110)
    [depend]     at java.util.zip.ZipFile.<init>(ZipFile.java:125)
    [depend]     at 
org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:864)
    [depend]     at 
org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:793)
    [depend]     at 
org.apache.tools.ant.taskdefs.optional.depend.Depend.determineDependencies(
Depend.java:417)
    [depend]     at 
org.apache.tools.ant.taskdefs.optional.depend.Depend.execute(Depend.java:664)
    [depend]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [depend]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [depend]     at 
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [depend]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1216)
    [depend]     at 
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:357)
    [depend]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [depend]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [depend]     at 
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [depend]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1216)
    [depend]     at 
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:357)
    [depend]     at 
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:144)
    [depend]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [depend]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [depend]     at 
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [depend]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1216)
    [depend]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1160)
    [depend]     at org.apache.tools.ant.Main.runBuild(Main.java:605)
    [depend]     at org.apache.tools.ant.Main.start(Main.java:195)
    [depend]     at org.apache.tools.ant.Main.main(Main.java:234)
    [depend] java.util.zip.ZipException: error in opening zip file
    [depend]     at java.util.zip.ZipFile.open(Native Method)
    [depend]     at java.util.zip.ZipFile.<init>(ZipFile.java:110)
    [depend]     at java.util.zip.ZipFile.<init>(ZipFile.java:125)
    [depend]     at 
org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:864)
    [depend]     at 
org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:793)
    [depend]     at 
org.apache.tools.ant.taskdefs.optional.depend.Depend.determineDependencies(
Depend.java:417)
    [depend]     at 
org.apache.tools.ant.taskdefs.optional.depend.Depend.execute(Depend.java:664)
    [depend]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [depend]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [depend]     at 
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [depend]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1216)
    [depend]     at 
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:357)
    [depend]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [depend]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [depend]     at 
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [depend]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1216)
    [depend]     at 
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:357)
    [depend]     at 
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:144)
    [depend]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [depend]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [depend]     at 
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [depend]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1216)
    [depend]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1160)
    [depend]     at org.apache.tools.ant.Main.runBuild(Main.java:605)
    [depend]     at org.apache.tools.ant.Main.start(Main.java:195)
    [depend]     at org.apache.tools.ant.Main.main(Main.java:234)
    [depend] java.util.zip.ZipException: error in opening zip file
    [depend]     at java.util.zip.ZipFile.open(Native Method)
    [depend]     at java.util.zip.ZipFile.<init>(ZipFile.java:110)
    [depend]     at java.util.zip.ZipFile.<init>(ZipFile.java:125)
    [depend]     at 
org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:864)
    [depend]     at 
org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:793)
    [depend]     at 
org.apache.tools.ant.taskdefs.optional.depend.Depend.determineDependencies(
Depend.java:417)
    [depend]     at 
org.apache.tools.ant.taskdefs.optional.depend.Depend.execute(Depend.java:664)
    [depend]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [depend]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [depend]     at 
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [depend]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1216)
    [depend]     at 
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:357)
    [depend]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [depend]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [depend]     at 
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [depend]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1216)
    [depend]     at 
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:357)
    [depend]     at 
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:144)
    [depend]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [depend]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [depend]     at 
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [depend]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1216)
    [depend]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1160)
    [depend]     at org.apache.tools.ant.Main.runBuild(Main.java:605)
    [depend]     at org.apache.tools.ant.Main.start(Main.java:195)
    [depend]     at org.apache.tools.ant.Main.main(Main.java:234)
    [depend] Deleted 0 out of date files in 0 seconds

nb:

[localhost:metagraph/persistence/persistable] work% ls 
/Users/work/Documents/coding/isis/source/metagraph/persistence/persistable/
../../../products
RepeatMapper.jar             general_graphics.jar         node_units.jar


If I supply a value for the includes in the fileset, such as "xxx", it 
works.

Scott


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


Mime
View raw message