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">.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]