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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to