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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to