DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23261>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23261

enhance <available type="symbolic_link" />





------- Additional Comments From [EMAIL PROTECTED]  2003-10-16 15:46 -------
However we do have org.apache.tools.ant.util.FileUtils.isSymbolicLink(File,
String). This is what is used in the <symlink> task. There are a number of
caveats to using it as noted in the javadoc:

     * <p>It doesn't really test for symbolic links but whether the
     * canonical and absolute paths of the file are identical - this
     * may lead to false positives on some platforms.</p>

However, the platform on which this gives a false positive has not (to my
knowledge) been found yet. 

I would say that this version of available is possible, but should carry the
same caveat until sun actually does provide a better interface to native file
systems, and then we can drop in a reflection to use a real test when the proper
vm is available. I might try to code this up if I have time this weekend, but no
guarantees and of course any1 who wants to do it or be sure it gets done is free
to beat me to it. :)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to