You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Tom Elrod <te...@e2technologies.net> on 2002/08/28 22:25:44 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>