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  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


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

Reply via email to