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 27922] New: - Launcher fails for UNC drive names as ANT_HOME
Date Wed, 24 Mar 2004 22:12:18 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=27922>.
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=27922

Launcher fails for UNC drive names as ANT_HOME

           Summary: Launcher fails for UNC drive names as ANT_HOME
           Product: Ant
           Version: 1.6.1
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: rainer@noacks.net


If ANT_HOME is set to a UNC drive name (f.e. "\\mymachine\mydrive\myantpath"), 
oata.launch.Launcher throws ClassNotFoundException for Class oata.Main.

I found out, that the problem is method oata.launch.Locator.fromURL. It 
doesn't handle UNC drive names. 
As it initially removes url's "file://" prefix, the above example with the 
url "file://mymachine/mydrive/myantpath" results in the (relative) filename 
"mymachine\mydrive\myantpath".

BTW another comment to oata.launch.Launcher: 
If ANT_HOME_PROPERTY is set, the default value for ANTLIBDIR_PROPERTY
should be ANT_HOME/lib instead of the codebase oata.launch.Launcher is loaded 
from.

P.S.: If Ant is not intended to support UNC drive names, please change 
severity to 'Enhancement'.

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


Mime
View raw message