ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Sorensen" <jan.soren...@aragost.com>
Subject Re: Replace a file in a jar
Date Fri, 19 Oct 2001 13:49:14 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.

Unfortunately I'm (still) using ant 1.3 and the "udpate" attributes is only
in 1.4.

Well, I think it is time to upgrade.

--
Jan Sorensen


Mime
View raw message