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:[EMAIL PROTECTED]] > Sent: Wednesday, August 28, 2002 3:26 PM > To: [EMAIL PROTECTED] > 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:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
