jenkinsci/gradle-plugin — pull request #14 by gluck (2012-12-14 17:23:35+00:00)
Title: Fix gerrit parameter handling for Windows

Gerrit plugin adds many build variables, first one being:
-DGERRIT_PATCHSET_UPLOADER=\"Foo Bar\"
(with the back-slashes, as required on unix)

This causes issues with gradle depending on how it's escaped, either:
- gradle.bat fails if the first argument isn't 'quote-balanced' (and batch files don't recognize quote escaping through '\')
- gradle fails in jdk6 but not in jdk7 because of a java command line parsing change:
http://gluck-md.blogspot.fr/2012/12/jdk7-surprise.html

Patch does 2 things:
- remove custom escaping and use the common jenkins one (used by Ant)
(that alone isn't enough as it doesn't work for jdk below 7)
- add a configuration to bypass the startup script (both gradle.bat & gradlew.bat) and call directly java

Basically does what this pull request was meant to, but keeping gradlew support:
https://github.com/jenkinsci/gradle-plugin/pull/6