ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jscripter <>
Subject Making the delete task behave like /bin/rm -rf vis-a-vis symlinks to directories
Date Mon, 22 Jun 2009 20:22:14 GMT

I am using this target definition to remove all the files under ${TOP} which
contains some symlinks to other directories:

    <target name="clean">
        <delete includeEmptyDirs="true" failonerror="false">
            <fileset dir="${TOP}" followsymlinks="false"/>

However, I've noticed that delete is not deleting the symlinks.

I'd like to get the same results as /bin/rm -rf under Unix, i.e. the
symlinks are deleted but not followed. Is there a way to do that with the
delete task?
View this message in context:
Sent from the Ant - Users mailing list archive at

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

View raw message