[GRADLE-968] gradle.bat, had to use [-Dgradle.home=%GRADLE_HOME%] instead of [-Dgradle.home="%GRADLE_HOME%"], no double-quotes around %GRADLE_HOME% Created: 09/Jun/10  Updated: 04/Jan/13  Resolved: 04/Jan/11

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 0.9.2

Type: Bug
Reporter: Evgeny Goldin Assignee: Hans Dockter
Resolution: Fixed Votes: 0


Running "gradle -v" caused (I've added a dump of a command executed):

C:\Users\evgeny>gradle -v
["d:\Winny\java\jdk1.6.0_20\bin\java.exe"   -Dgradle.home="d:\Winny\java\gradle-0.9-preview-3\" -classpath "d:\Winny\java\gradle-0.9-preview-3\\lib\gradle-launcher-0.9-preview-3.jar" org.gradle.launcher.GradleMain -v]
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -client       to select the "client" VM
    -server       to select the "server" VM
    -hotspot      is a synonym for the "client" VM  [deprecated]
                  The default VM is client.

after changing '-Dgradle.home="%GRADLE_HOME%"' to '-Dgradle.home=%GRADLE_HOME%' I now get

C:\Users\evgeny>gradle -v
["d:\Winny\java\jdk1.6.0_20\bin\java.exe"   -Dgradle.home=d:\Winny\java\gradle-0.9-preview-3\ -classpath "d:\Winny\java\gradle-0.9-preview-3\\lib\gradle-launcher-0.9-preview-3.jar" org.gradle.launcher.GradleMain -v]

Gradle 0.9-preview-3

Gradle buildtime: Thursday, 3 June 2010 11:51:38 AM EST
Groovy: 1.7.2
Ant: Apache Ant version 1.8.1 compiled on April 30 2010
Ivy: 2.1.0
Java: 1.6.0_20
JVM: 16.3-b01
JVM Vendor: Sun Microsystems Inc.
OS Name: Windows 7

Generated at Wed Jun 30 11:43:30 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.