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

Reply via email to