ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis GALIEGUE <...@one2team.com>
Subject Re: Tar Task
Date Thu, 15 Oct 2009 06:33:56 GMT
On Thu, Oct 15, 2009 at 00:48, Rez P <pons32@hotmail.com> wrote:
>
> Hello Everyone,
>
>
>
> 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.
>
>
>
>  <target name="tar" >
>  <tar destfile="${dist}/ShellScripts.tar"
>   basedir="shell"
>   excludes="**/cvs/**"
>  />
>  </target>
>
>

You can just <delete> the tarball before recreating it. Delete won't
fail if it can't find the file to delete.

-- 

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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


Mime
View raw message