Details
Description
In WindowsXP...
Z:\dev>gant -D barney=123
Target 123 does not exist.
Z:\dev>gant -D barney=abc
Target abc does not exist.
Z:\dev>gant -D barney="abc"
Target abc does not exist.
In MacOSX
$ gant -D barney=123
123
[echo] 123
Example Gant file:
target ( main : 'A target' ) {
println barney
echo ( message : barney )
}
setDefaultTarget ( main )
Issue Links
| This issue relates to: | ||||
| GROOVY-1767 | Windows start scripts have problems with -Dfoo=bar parameters |
|
|
|
Is this naked Windows or using Cygwin or MSYS? This is important since it is a question of whether it is the DOS batch file or the Posix shell script.
Someone had a very similar problem some months ago with the DOS batch script. After a lot of experimentation, in the end, they discovered that the only thing that worked was:
gant "-D barney=123"
This is a DOS batch file issue not a Gant source code issue. An alternative to the above is to use the native launcher instead of the DOS batch file.