ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhadra, Jatin" <>
Subject spaces in url for get task (2)
Date Wed, 05 Sep 2001 15:48:06 GMT
Hi all, 

I want to pass the following URL as the source parameter to the get task.

http://localhost:32000/servlet/vajimport?rep=c:/ant-1.3/New repository.dat

What this URL does is calls a servlet vajimport that runs in Visual Age for
(VAJ) servlet engine. Parameter rep takes in the path of repository to be

I have this following task in my build.xml file
<get src="http://localhost:32000/servlet/vajimport?rep=New repository.dat"

I can see the message 
[get] Getting: "http://localhost:32000/servlet/vajimport?rep=c:/ant-1.3/New

But the request that is sent to the server is only 

I would had assumed that in ant all the spaces will be replaced by + or %20

Has any one come across this problem before. 

Thanks in advance

PS: I known that I can replace the space in my request with + or %20 but
since the parameter 
that I pass in is a variable I have no control over it.

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. 

View raw message