ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhadra, Jatin" <jatin.har...@landg.com>
Subject RE: spaces in url for get task
Date Wed, 05 Sep 2001 14:30:08 GMT
In my case, the url that will be passed as the src parameter for the get
task comes as a input variable. So i don't have control over it. 
for eg 

java -Dant.home=c:\ant-1.3 org.apache.tools.ant.Main -buildfile buildjar.xml
-DFile="%%1"
Where %%1 is the name of file eg "new repository"

When I call following task only new is passed in instead of "new repository"
<get
src="http://localhost:32000/servlet/vajimport?rep=c:/repository/${File}"
dest="c:/test.html"/> 



-----Original Message-----
From: Will Dyke [mailto:will.dyke@bbc.co.uk]
Sent: 05 September 2001 12:04
To: 'ant-user@jakarta.apache.org'
Subject: RE: spaces in url for get task


You could try replacing the space with %20 (hex ascii code
for space)

Hope that helps,
Will Dyke

> -----Original Message-----
> From: Bhadra, Jatin [mailto:jatin.harish@landg.com]
> Sent: 05 September 2001 11:42
> To: 'ant-user@jakarta.apache.org'
> Subject: spaces in url for get task
> 
> 
> 
> Hi all, 
> 
>  I am trying to use the get task, But the URL that I am 
> passing in has a
> space in the Url.
> For eg
> 
> <get 
> src="http://localhost:32000/servlet/vajimport?rep=c:/repository/new
> repository.dat " dest="c:/test.html"/> 
> Here I have space in "new repository.dat". 
> 
> Are the spaces in the URL handles by ant or will i have to 
> change the code
> in ant to replace spaces with "+".
> 
> Thanks in advance 
> Jatin
> ==============================================================
> ========= 
> This e-mail (and any attachments) may contain privileged and/or 
> confidential information. If you are not the intended recipient 
> please do not disclose, copy, distribute, disseminate or take any 
> action in reliance on it. If you have received this message in 
> error please reply and tell us and then delete it. 
> 
> Any information contained in this message may be subject to 
> applicable terms and conditions and must not be construed as 
> giving investment advice within or outside the United Kingdom. 
> 
> Should you wish to communicate with us by e-mail we cannot guarantee 
> the security of any data outside our own computer systems. 
> ==============================================================
> =========
> 


This e-mail, and any attachment, is confidential. If you have received
it in error, please delete it from your system, do not use or disclose
the information in any way, and notify me immediately. The contents of
this message may contain personal views which are not the views of the
BBC, unless specifically stated.

Mime
View raw message