ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Elrod <tel...@e2technologies.net>
Subject Re: using file:// protocol with get task
Date Wed, 28 Aug 2002 20:39:19 GMT
That was it.  Thanks.

Dominique Devienne wrote:

> Try with <get src=file:///C:/foo.jar />. I believe you need the additional
> slash, but I could be wrong. --DD
>
> -----Original Message-----
> From: Tom Elrod [mailto:telrod@e2technologies.net]
> Sent: Wednesday, August 28, 2002 3:26 PM
> To: ant-user@jakarta.apache.org
> Subject: using file:// protocol with get task
>
> I was wondering if anyone might know of a way to use the 'get' task to
> retrieve files off of a local disk?  The following does not work (output
> is Error getting file://C:/foo.jar):
>
>         <get src="file://C:/foo.jar"
>             usetimestamp="true"
>             verbose="on"
>             dest="${stage.lib}/foo.jar"/>
>
> The Ant 1.5 manual states that "Any URL schema supported by the runtime
> is valid here,  including http:, ftp: and jar:; ...".  Although it does
> not explicitly include file:, isn't it a valid URL schema?  Works in web
> browser.
>
> Normally the 'get' would point to a web server and use http:, but want
> to be able to change it to local file system when working in environment
> that does not have network access.
>
> Tried looking in archive, but the keywords 'get', 'task', 'file' are a
> little too generic to find any useful information on.
>
> Thanks.
>
> -Tom
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>



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


Mime
View raw message