Hi Karl, Long back while googling I got an useful info about ant's classpath recognition technique. I don't exactly remember the source though. But I could tell you the reason for these Zip exceptions. Ant actually considers every file in the classpath as an archived file (*.zip or *.jar etc) while executing some optional tasks, ex.. junit etc... So this is actually not a problem because of the *.jar which you've mentioned, but because of some other file that may be present In your task's classpath. Are you trying to execute some tasks like junit or something????. I've one more query.. Does your build fails because of this exception???? If so please send me the scripts, I'll have a look into it.
Regards, Kamesh -----Original Message----- From: Francis GALIEGUE [mailto:[email protected]] Sent: Wednesday, September 16, 2009 12:49 PM To: Ant Users List Subject: Re: ant-contribution.jar error On Tue, Sep 15, 2009 at 22:08, Karl Nielsen <[email protected]> wrote: > I am sure this has been answered, but googling isn't turning up any great > results. > I am trying to run the seam in action code examples which is a pretty simple > build.xml file. Every time I try to run them ant spews this nice stack > trace: > > java.util.zip.ZipException: error in opening zip file > [taskdef] at java.util.zip.ZipFile.open(Native Method) > [taskdef] at java.util.zip.ZipFile.<init>(ZipFile.java:114) > [taskdef] at java.util.zip.ZipFile.<init>(ZipFile.java:131) [...] > > > I have tried putting the ant-contrib jars everywhere I can think of and it > hasn't resolved. Any ideas? > > I am running on Snow Leopard and ant 1.7.0 that comes prebundled with OSX. > Is it actually a zip file? Try and do unzip -l /wherever/is/ant-contrib.jar. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 [email protected] 40 avenue Raymond Poincaré 75116 Paris --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
