Reputation:
Any ideas why this does not remove the broken symlink itself?
<delete removeNotFollowedSymlinks="true">
<fileset followsymlinks="false" file="/some/path/to/broken/symlink" />
</delete>
Alternatively I could use the below, but I'd prefer to avoid exec?
<exec executable="rm">
<arg value="-f"/>
<arg value="/some/path/to/broken/symlink" />
</exec>
Upvotes: 4
Views: 806
Reputation:
Found the real way to do it...
<symlink failonerror="false" action="delete" link="/some/path/to/broken/symlink" />
Upvotes: 2