ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Tar Task
Date Fri, 16 Oct 2009 04:38:02 GMT
On 2009-10-15, Rez P <pons32@hotmail.com> wrote:

> How do I get the tar task to overwrite its previously created tar
> file? Please see my current target below.  I don't want to delete my
> dist folder each time and I don't see any options in the help section
> to overwrite the previous version of ShellScripts.tar.

The core tar task doesn't support this scenario, so you'd have to delete
the archive before re-creating it.

OTOH the tar task will re-create your target archive if any of the files
that would end up inside the archive are newer than the entries inside
the existing archive.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message