ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <>
Subject Re: Removing a file from .jar file
Date Fri, 05 May 2006 14:02:42 GMT
When I say rejar - I don't mean updating the jar you unpacked...I mean 
literally creating a new jar file after the class file in question has 
been deleted from the file system.  Otherwise, you will be just be doing 
an update...and the old class file will still be maintained...

Scot P. Floess wrote:
> Leomar:
> I don't think you can delete the class file...but you can certainly 
> update the jar file with a new class or modified class.  To delete, 
> you will probably need to unjar, delete the file in question and rejar...
> Leomar Costa wrote:
>>     Hi !
>>     How I can remove a file from a jar ?
>>     For instance: I have a helloworld.jar with a helloworld.class and 
>> a xxx.class inside.
>>     Can I with ant remove the xxx.class that is inside helloworld.jar ?
>>     I want only helloworld.class inside helloworld.jar ...
>>     Thanks a lot,
>>     Leomar     From Brazil

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate
Chief Architect JavaPIM

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

View raw message