You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jochen Wurster <jo...@web.de> on 2005/12/01 22:03:41 UTC
removing file from jar
Hi,
is there a way to remove a file from an existing jar file? Other than using
WinZip ;-)
Bye
Jochen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: removing file from jar
Posted by Jochen Wurster <jo...@web.de>.
Hi Antoine,
thanks this worked for me. If you want to keep the MANIFEST you have to use
the zip task.
<zip destfile="new.jar">
<zipfileset src="old.jar">
<exclude name="do/not/include/this/class"/>
</zipfileset>
</zip>
<move file="old.jar" tofile="new.jar"/>
Bye
Jochen
On Thursday 01 December 2005 22:16, Antoine Levy-Lambert wrote:
> Hello Jochen,
>
> with ant you can do something like
>
> <jar destfile="new.jar">
> <zipfileset src="old.jar">
> <exclude name="do/not/include/this/class"/>
> </zipfileset>
> </jar>
> <move file="old.jar" tofile="new.jar"/>
>
> Cheers,
>
> Antoine
>
> Jochen Wurster wrote:
> >Hi,
> >
> >is there a way to remove a file from an existing jar file? Other than
> > using WinZip ;-)
> >
> >
> >Bye
> >
> >Jochen
>
> ---------------------------------------------------------------------
> 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
Re: removing file from jar
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Jochen,
with ant you can do something like
<jar destfile="new.jar">
<zipfileset src="old.jar">
<exclude name="do/not/include/this/class"/>
</zipfileset>
</jar>
<move file="old.jar" tofile="new.jar"/>
Cheers,
Antoine
Jochen Wurster wrote:
>Hi,
>
>is there a way to remove a file from an existing jar file? Other than using
>WinZip ;-)
>
>
>Bye
>
>Jochen
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: removing file from jar
Posted by Mark Eramo <ME...@lightbridge.com>.
Hi,
Check out this link
http://java.sun.com/docs/books/tutorial/jar/
It should help you out.
Cheers,
Mark
Jochen Wurster <jo...@web.de>
Sent by: jochen.wurster@web.de
12/01/2005 04:03 PM
Please respond to
"Ant Users List" <us...@ant.apache.org>
To
user@ant.apache.org
cc
Subject
removing file from jar
Hi,
is there a way to remove a file from an existing jar file? Other than
using
WinZip ;-)
Bye
Jochen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org