DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=41285>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41285 Summary: delete and symlink tasks do not delete a symlink if its target does not exist Product: Ant Version: 1.7.0 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] We have a build that creates symlinks to some of the outputs of the build. Part of the initialization for the build is to delete old symlinks from prior builds. But if a file that was the target of the symlink is gone for any reason, the deletion of the symlink fails. The scenario is like: rm -rf ~/foo cd ~/foo touch a ln -s a b ln -s x c Note that file x does not exist. If I use ant <symlink> or <delete> task to try to delete /foo/b and /foo/c, the /foo/c symlink cannot be deleted. I have to use <exec> with rm -f to do the deletion. I have a testcase that shows all the combinations of attributes that I tried on these ant tasks and will be glad to send it in. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]