ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kamesh Parameswaran <kapar...@cisco.com>
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.

Regards,
Kamesh

-----Original Message-----
From: Francis GALIEGUE [mailto:fge@one2team.com] 
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 <karlnielsenslc@gmail.com> 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
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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


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


Mime
View raw message