I am trying to delete a symlink using the below line :
<symlink action="delete" link="/path/of/link/symlink"/>
It throws an error saying:
Could not create tempfile in /directory/where/symlink/points
The /directory/where/symlink/points is supposed to be read-only. Is there a way in which I could just delete the symlink ?
Symlinks pointing to read-only resources may be deleted using the <delete>
Ant task.
<target name="delete-symlink">
<delete file="/path/of/link/symlink" followsymlinks="false"
removenotfollowedsymlinks="true" />
</target>
From the <delete>
Ant task 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With