ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kamesh Parameswaran <>
Subject RE: ant-contribution.jar error
Date Wed, 16 Sep 2009 09:01:55 GMT
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.


-----Original Message-----
From: Francis GALIEGUE [] 
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 <> 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:
> error in opening zip file
>  [taskdef] at Method)
>  [taskdef] at<init>(
>  [taskdef] at<init>(
> 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
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
40 avenue Raymond Poincaré
75116 Paris

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message