ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <>
Subject RE: Updating a jar file through Ant
Date Thu, 09 Aug 2001 06:05:16 GMT
> I have a situation where I need to update the contents of 
> a jar file, specifically its manifest file. Looking at the 
> Jar task, there does not appear to be a way to update a 
> current jar. The alternative is to unjar the file, do the 
> processing, then rejar it which is a bit too much when I 
> could use the following command: 'jar umf classpath *.jar'. 
> Any suggestions on do this? Do I have to write a custom task 
> to accomplish my goals.

Grab the latest source, and you'll find that the zip task (from which
jar inherits) has an update=true/false parameter. Simply set it to true
and all should be well.


View raw message