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 35776] New: - amend FileUtils to properly handle cygwin symbolic links
Date Mon, 18 Jul 2005 11:35:36 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=35776>.
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=35776

           Summary: amend FileUtils to properly handle cygwin symbolic links
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: hauser@acm.org
                CC: daniel.santos@pobox.com,morrijr@apache.org


org.apache.tools.ant.util.FileUtils is a great tool to create platform
independent paths:

        FileUtils fu = FileUtils.getFileUtils();
        return new Location(Locator.fromURI(fu.toURI(fileName)))
                .getFileName();

Unfortunately, when a path is using cygwin symlinks, it still won't work.

There is a resolveFile() that already does more than just new File(file,
filename), but unfortunately, it wouldn't notice if a file doesn't exist (due to
being a cygwin symbolic link).

Once this exists, I guess this very useful tool "FileUtils" might find many more
takers and thus could move to jakarta-commons?

-- 
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