tags:

views:

21

answers:

1

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>
A: 

Found the real way to do it...

<symlink failonerror="false" action="delete" link="/some/path/to/broken/symlink" />
Michael
FWIW, this doesn't work for me on OS X 10.6 with Ant 1.7.1, and it's really annoying. I had to resort to <exec> with /bin/rm to remove a symlink. You'd think they might have fixed this long ago.
Quinn Taylor