Great, thanks. I was so busy thinking about deleting the folder that deleting 
the file didn't occur to me. Duh!  :)

 

Good to know that delete won't fail if the file doesn't exist.

 

Thanks.
 
> Date: Thu, 15 Oct 2009 08:33:56 +0200
> Subject: Re: Tar Task
> From: f...@one2team.com
> To: user@ant.apache.org
> 
> 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
> 
                                          
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/

Reply via email to