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 23261] - enhance <available type="symbolic_link" />
Date Thu, 16 Oct 2003 15:46:35 GMT
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 gus.heck@olin.edu  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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message