ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Wurster <jochen.wurs...@web.de>
Subject Re: removing file from jar
Date Fri, 02 Dec 2005 18:39:01 GMT
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


Mime
View raw message