Stefan, On Wed, Aug 6, 2025 at 6:09 PM Stefan Bodewig <bode...@apache.org> wrote:
> On 2025-08-06, Bridger Dyson-Smith wrote: > > > I've been working with the assumption that I may be either updating an > > existing install (ie I have symlinks) or I am installing fresh (ie I have > > empty directories), so the tasks are... uh, probably unnecessarily > verbose > > (suggestions for improvements welcome). > > <symlink action="delete" failonerror="false"/> should remove the symlink > if it exists and not do anything if it doesn't. So this should be a > reliable way to delete it without required ant-contrib. > > > <delete removenotfollowedsymlinks="true" failonerror="false"> > > <fileset followsymlinks="false" dir="${basex-home}/data"/> > > </delete> > > I'm surprised this works on FreeBSD as I don't think we'd record "." as > not followed symlink at all - haven't checked the code. > > <delete removenotfollowedsymlinks="true" failonerror="false"> > <fileset followsymlinks="false" dir="${basex-home}"> > <include name="data"/> > </fileset> > </delete> > > should probably work but I'd go with <symlink action="delete">. > I really appreciate the pointer - it's a big help! Thanks for your time. > > Stefan > Best, Bridger > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > >