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 1550] - delete task follow symbolic links
Date Thu, 09 May 2002 01:22:55 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=1550>.
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=1550

delete task follow symbolic links





------- Additional Comments From gus.heck@olin.edu  2002-05-09 01:22 -------
Also the code I wrote would have detected it as a real file anyway because I 
build and test my file object like this:

tempdir = new File(dir.getCanonicalPath());
tester = new File(tempdir, newfiles[i]);
can = tester.getCanonicalPath();
abs = tester.getAbsolutePath();
if (can.equals(abs)) {
    noLinks.add(newfiles[i]);
}

I only flag it as a symlink if the last element in the path is non-canonical.
The rest of directory scanner never sees anything that fails that test.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message