https://issues.apache.org/bugzilla/show_bug.cgi?id=56700
Bug ID: 56700
Summary: Delete task should not follow symlinks by default
Product: Ant
Version: unspecified
Hardware: PC
Status: NEW
Severity: enhancement
Priority: P2
Component: Core tasks
Assignee: [email protected]
Reporter: [email protected]
Our builds always clean the build dir like this:
<delete dir="build" />
However, I just deleted a couple of my applications, thanks to having a symlink
to /Applications and Ant's default behaviour being to follow the symlinks.
I now know that I have to do this to get safe behaviour (added in Bug 22632):
<delete quiet="true" removeNotFollowedSymlinks="true">
<fileset dir="build" followsymlinks="false"/>
</delete>
I know that having the less useful defaults for tasks is something like an Ant
culture, but in this particular case, the potential for damage is quite high,
so I think that the default behaviour should be the safe behaviour.
--
You are receiving this mail because:
You are the assignee for the bug.