ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <>
Subject Re: <delete> without following symlinks
Date Mon, 08 Mar 2004 18:36:35 GMT
There was a reponse to this e-mail that I deleted by accident.
One can use embedded filesets with followsymlinks, however
this does not work for all cases. I think that the "followsymlinks"
should be in the delete task as well. In this case, any directories
returned by the embedded filesets, or the directories returned from
the recursive deletion of the dir attribute will be tested for symbolic

In the meantime, <delete dir="build"/> is extremely dangeous to
use if you are inclined to use symbolic links in the build directory.
(I was bitten by this :-[ ).

Dave Glowacki wrote:

> I've got a build file which runs a Unix program to set up a build 
> directory.  Among other tasks, this Unix program creates symbolic 
> links to several directories of utility programs.
> One of the first commands the build.xml file contains is <delete 
> dir="${builddir}">, which attempts to follow the symlinks and delete 
> everything in the symlinked directories, which is NOT what I want to 
> have happen.
> Is there an option for the <delete> task telling it not to follow 
> symlinks?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message