https://hudson.dev.java.net/issues/show_bug.cgi?id=2149------- Additional comments from
[hidden email] Wed Aug 6 08:40:58 +0000 2008 -------
I can reproduce it on Windows. On Unix (Solaris) it works fine.
The problem is the intepretation of "," of Windows' cmd.exe:
> D:\workspace\project>ant -Dfoo=bar,baz
> Buildfile: build.xml
>
> BUILD FAILED
> Target "baz" does not exist in the project
>
> Total time: 5 seconds
> D:\workspace\project>ant "-Dfoo=bar,baz"
WORKS
> D:\workspace\project>ant -Dfoo="bar,baz"
WORKS
But fixing this by just surrounding the "-D" arguments with " is not a real fix,
because if the property contains " you have to escape them. But only on
Windows... Quite complicated...
Ant.java:
...
for (Entry<Object,Object> entry : p.entrySet()) {
args.add("-D" + entry.getKey() + "='" + entry.getValue());
}
...
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]