On Thu, Oct 15, 2009 at 00:48, Rez P <pon...@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
f...@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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

Reply via email to