ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arvid.Amund...@sas.no
Subject RE: Property Setting
Date Mon, 26 Feb 2001 14:44:25 GMT
I just tried the following:

ant -Dinpath=%Mypath% -Dinput="this and that" Framework

inpath is a path i need for my compilation
Framework is some target in my build.xml


works just fine for me
-- Arvid

-----Original Message-----
From: cwatson@InPhact.com [mailto:cwatson@InPhact.com]
Sent: Monday, February 26, 2001 15:29
To: ant-user@jakarta.apache.org
Subject: Property Setting


In trying to set a property, I've run into a wall.  From within a buildfile
I can do the following:

<property name="thing" value="sdasd asdasd asdasd" />

Done outside the buildfile, from the command line, I try:

ant -Dthing="sdasd asdasd asdasd" target

and it tries to find the target 'asdasd'.

Is there a way to set a property that has a space in it's contents from
outside ant?

Mime
View raw message