ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Elrod <>
Subject using file:// protocol with get task
Date Wed, 28 Aug 2002 20:25:44 GMT
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"

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

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.



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message