Details
Description
When starting Gant (or Groovy?) with a command line such as:
gant -Dfoo=bar create
on Windows such that the batch files are used (i.e. no Cygwin or MSYS to provide a Posix shell) then it seems that the startGroovy.bat file is "called" with a parameter -Dfoo=bar but the final java invocation has parameters:
-Dfoo bar
the = sign is replaced with a space.
I am informed that quoting on the command line cures the problem:
-D"foo=bar"
but I have not tested this, I am just reporting from emails.
This definitely seems to be a startGroovy.bat problem though – the Posix shell scripts have no problem.
Issue Links
| This issue is related to: | ||||
| GROOVY-2515 | Command line option -D does not work in Windows XP but does in MacOSX |
|
|
|
The following works for me with HEAD on Windows (native installer and cygwin after latest patch) and Linux but fails under Windows with .bat startup: