ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41285] New: - delete and symlink tasks do not delete a symlink if its target does not exist
Date Thu, 04 Jan 2007 00:38:56 GMT
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: msander@ieee.org


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message