Yes, I’m running on Windows. In fact it looks like https://issues.gradle.org/browse/GRADLE-2779.
When I’m using
args ..., '--command="deploy build/libs/shop.war --force"'
then the quote is lost. Also when using " instead of ".
However, when I’m using
args ..., '--command=""deploy build/libs/shop.war --force""'
then both quotes remain. Also when using " instead of ".
Therefore, I cannot deploy a Java EE app to WildFly aka JBoss when running on Windows…
BTW, the same issue happens when I try to use the ANT plugin for executing the Java class.