Bug#514140: ant: cannot remove (dangling) symlink

W. Martin Borgert debacle at debian.org
Wed Feb 4 17:55:55 UTC 2009


Package: ant
Version: 1.7.0-6

ant can create links (even dangling links!), but cannot remove them,
it seems. (Or at least, it's not obvious to a newbie like me.)

Removing dangling symlinks is a typical task in "clean" targets, so
it should just work. It's no problem with "make" or "scons".

Try "ant make" with the attached build.xml: It creates a (dangling)
symlink. Try "ant clean1": It says "BUILD SUCCESSFUL", but does not
remove the link. Try "ant clean2": It produces an error: "BUILD FAILED
build.xml:7: java.io.FileNotFoundException: No such symlink: target".

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')

Versions of packages ant depends on:
ii  gij-4.3 [java-virtual-machin 4.3.2-2     The GNU Java bytecode interpreter
ii  libxerces2-java              2.9.1-2     Validating XML parser for Java wit
ii  openjdk-6-jre [java2-runtime 6b12-1~exp1 OpenJDK Java runtime, using Hotspo
ii  openjdk-6-jre-headless [java 6b12-1~exp1 OpenJDK Java runtime, using Hotspo
"
Versions of packages ant recommends:
pn  ant-gcj                       <none>     (no description available)
ii  ant-optional                  1.7.0-6    Java based build tool like make -

Versions of packages ant suggests:
pn  ant-doc                       <none>     (no description available)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.xml
Type: text/xml
Size: 306 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20090204/8c280821/attachment.bin 


More information about the pkg-java-maintainers mailing list