gradle/gradle — pull request #73 by nobeans (2012-03-14 08:15:53+00:00)
Title: using GRADLE_OPTS instead of JAVA_OPTS for -Xdock:xxx

because -Xdock:name and -Xdock:icon are only for Gradle on darwin.
if JAVA_OPTS is used, it affects sub process which invoked by build script.