ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyril Bouteille <CyrilBoutei...@yahoo.com>
Subject Passing property values with spaces to Ant
Date Tue, 07 Nov 2000 00:50:36 GMT
Hi,

I'm trying to pass a bunch of property values to Ant for dynamic
variables in my build and I'm running into problems when these values
contain spaces. For example, when passing a list of options as value of
a property, Ant tries to interpret these options.

Here's a simple testcase:
cyril@wyvern:~/p4/hotwire/2.0/build> ant -Dvar="-op1 -op2"
Unknown arg: -op2

I tried a bunch of shell tricks such as:
cyril@wyvern:~/p4/hotwire/2.0/build> ant -Dvar='-op1 -op2'
Unknown arg: -op2
cyril@wyvern:~/p4/hotwire/2.0/build> ant -Dvar=-op1\ -op2 
Unknown arg: -op2
but nothing works...

Any idea on how to do this?
--
 Cyril Bouteille - Lead J2EE Software Engineer 
 Hotwire - San Francisco, California
 http://www.hotwire.com
Mime
View raw message