ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: how do I pass properties containing & char
Date Fri, 17 Aug 2007 09:01:33 GMT
One step further ...

You could use <input> for reading the url.


Jan 

-----Urspr√ľngliche Nachricht-----
Von: Peter Reilly [mailto:peter.kitt.reilly@gmail.com] 
Gesendet: Freitag, 17. August 2007 10:59
An: Ant Users List
Betreff: Re: how do I pass properties containing & char

If you are using unix/linux, just quote the parameter:
>ant "-Dtest.url=http://x.y.z?a=b&c=d"
Buildfile: build.xml

y:
       [echo] http://x.y.z?a=b&c=d

If you are using dos, it is probably impossible to get the stuff
though the quagmire that is cmd.

Use a property file: build.properties
test.url=http://x.y.z?a=b&c=d

Peter

It is probably the ant shell/or cmd script that is whining.
It would be difficult to get the shell script to pass everthing
through,

On 8/17/07, teknokrat <teknokrat@yahoo.com> wrote:
> I am using ant 1.7. I need to pass urls as properties. Unfortunately
> these have parameters in them i.e. -Dtest.url=http://x.y.z?a=b&c=d
>
> ant barfs on these - is there any way this can be done
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message