Characters pointing to read-only resources can be removed using the <delete> Ant task.
<target name="delete-symlink"> <delete file="/path/of/link/symlink" followsymlinks="false" removenotfollowedsymlinks="true" /> </target>
From the <delete> Ant documentation:
removeNotFollowedSymlinks Whether symbolic links (not the files / directories
they link to) should be removed if they haven't been
followed because followSymlinks was false or the
maximum number of symbolic links was too big. Since
Ant 1.8.0
source share