I recently began to get a peculiar ZipException
when running the javadocs task in ant. My ant script to run javadocs
hasn't changed in any way, so I suspect it's some kind of path or jar problem,
but I'm not sure what. It also doesn't seem to affect the javadoc output,
which is produced fine regardless.
My ant script for javadocs looks like this (all of
the referenced variables are set correctly, I've checked):
<javadoc packagenames="${package_name}" sourcepath="${src_dir}" classpath="${class_path}" destdir="${base_dir}/doc/api" author="true" version="true" use="true" windowtitle="${package_name} API"> </javadoc> This produces the following output:
[javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Loading source files for package net.erelon.thread... [javadoc] Constructing Javadoc information... [javadoc] Building tree for all the packages and classes... [javadoc] Building index for all the packages and classes... [javadoc] Building index for all classes... java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:110) at java.util.zip.ZipFile.<init>(ZipFile.java:125) at org.apache.tools.ant.AntClassLoader.getResourceStream(AntClassLoader.java:286) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:485) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:465) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:369) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.tools.ant.taskdefs.Available.checkClass(Available.java:171) at org.apache.tools.ant.taskdefs.Available.execute(Available.java:132) 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) Suggestions are very welcome.
Aaron
|