ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Braden N. McDaniel" <bnmcdan...@learningsoft.net>
Subject RE: XML entity question
Date Thu, 27 Jul 2000 17:57:39 GMT
On Thu, 27 Jul 2000, Dino Valente wrote:

> With sun's parser I get the following with file://../build.template
> 
>         at java.net.InetAddress.getAllByName0(InetAddress.java:571)
>         at java.net.InetAddress.getAllByName0(InetAddress.java:540)
>         at java.net.InetAddress.getByName(InetAddress.java:449)
>         at java.net.Socket.<init>(Socket.java:100)
>         at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
>         at sun.net.NetworkClient.openServer(NetworkClient.java:38)
>         at sun.net.ftp.FtpClient.openServer(FtpClient.java:267)
>         at sun.net.ftp.FtpClient.<init>(FtpClient.java:381)
> 
> with file:/// I get:
> 
> BUILD FAILED
> 
> File "build.xml" not found
> 
> but it works fine with file:../build.template
> 
> 
> Using the xerces parser I get the following with file:///../build.template

I don't think that means what you think it means. Per RFC 1808, a relative
URL does not include the scheme identifier (that is inferred from the base
document). In an absolute URL, the '.' and '..' are used to resolve to an
absolute URL. But when they appear in an absolute URL, they are actual
identifiers in the hierarchy.

Try not using the scheme identifier at all.

Braden


Mime
View raw message