aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes modifying an existing jar file using ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "modifying an existing jar file using ant" Watch "modifying an existing jar file using ant" New topic
Author

modifying an existing jar file using ant

gaurav abbi
Ranch Hand

Joined: Jan 05, 2007
Posts: 108
hi,
can we modify an existing jar file with ant.
is there any ant task available for this.
modifications is like adding a class file to a jar.


thanks,<br />gaurav abbi
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
You can again create the jar file. It will override the existing jar file with the new class added.

I have not tried this but there is an update attribute in the jar task


http://www.skillassert.com


Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Yes, the update attribute should do the trick. Keep in mind that it can be quite slow with big jar files.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: modifying an existing jar file using ant