ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "james terry" <james.te...@unikala.com>
Subject RE: Passing in -D argument with space to the ant.bat script
Date Tue, 16 Jan 2001 04:45:41 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

one work-around would be to use: "dir /x" to get the 8.3 name of "dir
with spacees".


james@livemedia.com



- -----Original Message-----
From: William Lee [mailto:wlee@sendmail.com]
Sent: Monday, January 15, 2001 8:16 PM
To: Ant User
Subject: Passing in -D argument with space to the ant.bat script


The "ant.bat" script that comes with Ant 1.2 doesn't seem to support
- -D
options with space in it.  For example, I can do:

c:\> ant -DPROP="dir with space"

I'll get:

with was unexpected at this time.

I looked in the script bin\ant.bat and the following section is not
working around line 23:

:setupArgs

if "%1"=="" goto doneArgs
set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1

shift

goto setupArgs

I tried to print out %1 through echo, the thing is that it can only
get
the "-DPROP" part, but not the quoted string "dir with space".  I
don't
know much about NT scripting so if anyone knows how to get this to
work
I'd be very happy.  Thanks.

Will

-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8

iQA/AwUBOmPPxZflVHdG6xJOEQIBoQCgzqUoCTKfkMx0cNnuZITGHU1K0zEAoJ0F
KD+Kec57z8UwS1KFY8ICptlq
=aFTh
-----END PGP SIGNATURE-----


Mime
View raw message