ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <>
Subject Re: How to update a jar?
Date Thu, 10 May 2001 06:13:22 GMT
At 08:03  10/5/01 +0200, Stefan Bodewig wrote:
>> And I think the reason the <jar> task doesn't is because Ant tries
>> to be compatible with JDK 1.1, and that didn't offer the -u flag for
>> its 'jar' command.
>I don't think, this really is the reason.  Technically, there is no
>way to update a zip archive (call it zip or jar or war or whatever),
>you always have to create a new one mixing content.
>Using the approach Jon showed in his first mail (move the old archive,
>create a new one, delete the old one) is the only thing one can do -
>that doesn't mean that Ant couldn't hide this mechanism from the user,
>moving and deleting archives under the covers.

I think there is a way - it is just incredibly painful in java - though
there was a javaworld article or hint on how to make it easier ... 


| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |

View raw message