ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <>
Subject RE: Replace a file in a jar
Date Fri, 19 Oct 2001 12:58:50 GMT
> I have been trying to use the jar task to replace a file in a 
> jar, but with
> not success. It seems that if the jar file exists the jar 
> task don't do anything.
> My solution so far is to unjar and then jar again with the 
> new file. Is there a better solution?

Use the "update" parameter on the jar task. This should update the jar
file *if* the new contents are newer than the jar file itself.


View raw message