Hello,

I can only subscribe to what Tomek said. The quotes issue is a symptom of
the poor Windows scripting capabilities. It's sad, but there's no way to
make Windows scripts _reliably_ work with directories/files having
whitespace in their names. In the end you're going to be looking for
workarounds to the workarounds.

Just don't use whitespace in Windows and you'll save yourself lots of wasted
time.

Victor


On Wed, Jul 29, 2009 at 7:26 AM, Tomek Kaczanowski <
[email protected]> wrote:

> Hi Cesar,
>
> try to install Java in some other folder - without whitespaces. You
> will avoid many problems this way. In general don't use whitespaces in
> folder names, even if Windows encourages you to do that.
>
> --
> best regards
> Tomek Kaczanowski
> http://kaczanowscy.pl/tomek
>
> 2009/7/29 César <[email protected]>:
> >
> > Hi All,
> >
> > This is the first time I use Gradle and I've had some problems trying to
> > execute it %-|.
> >
> > Finally, it seems that gradle.bat has some problems with double
> quotations
> > marks (which are automatically added by command line when using TAB for
> > autocomplete).
> >
> > Note: "No se esperaba de en este momento." is the message error from my
> > Spanish Windows XP command line.
> >
> >      C:\LAB\tools\gradle-0.7\bin>
> >      C:\LAB\tools\gradle-0.7\bin>set JAVA_HOME="C:\Archivos de
> > programa\Java\jdk1.6.0_14"
> >      C:\LAB\tools\gradle-0.7\bin>gradle -v
> >      No se esperaba de en este momento.
> >
> > I thought that it could be a problem with space characters so I changed
> the
> > path to its short form.
> > But this time two different errors were displayed.
> >
> >      C:\LAB\tools\gradle-0.7\bin>set
> > JAVA_HOME="C:\Archiv~1\Java\jdk1.6.0_14"
> >      C:\LAB\tools\gradle-0.7\bin>gradle -v
> >      Acceso denegado: C:\ARCHIV~1\JAVA\JDK1.6.0_14
> >
> >      ERROR: JAVA_HOME is set to an invalid directory:
> > "C:\Archiv~1\Java\jdk1.6.0_14"
> >
> >      Please set the JAVA_HOME variable in your environment to match the
> > location of your Java installation.
> >
> > After removing the double quotations marks everything works fine
> :jumping:.
> >
> >      C:\LAB\tools\gradle-0.7\bin>set JAVA_HOME=C:\Archivos de
> > programa\Java\jdk1.6.0_14
> >      C:\LAB\tools\gradle-0.7\bin>gradle -v
> >
> >      ------------------------------------------------------------
> >      Gradle 0.7
> >      ------------------------------------------------------------
> >
> >      Gradle buildtime: Monday, July 20, 2009 8:50:13 AM CEST
> >      Groovy: 1.6.3
> >      Ant: Apache Ant version 1.7.0 compiled on December 13 2006
> >      Ivy: 2.1.0-rc2
> >      Java: 1.6.0_14
> >      JVM: 14.0-b16
> >      JVM Vendor: Sun Microsystems Inc.
> >      OS Name: Windows XP
> >
> >      C:\LAB\tools\gradle-0.7\bin>set
> JAVA_HOME=C:\Archiv~1\Java\jdk1.6.0_14
> >      C:\LAB\tools\gradle-0.7\bin>gradle -v
> >
> >      ------------------------------------------------------------
> >      Gradle 0.7
> >      ------------------------------------------------------------
> >
> >      Gradle buildtime: Monday, July 20, 2009 8:50:13 AM CEST
> >      Groovy: 1.6.3
> >      Ant: Apache Ant version 1.7.0 compiled on December 13 2006
> >      Ivy: 2.1.0-rc2
> >      Java: 1.6.0_14
> >      JVM: 14.0-b16
> >      JVM Vendor: Sun Microsystems Inc.
> >      OS Name: Windows XP
> >
> >      C:\LAB\tools\gradle-0.7\bin>
> >
> > I would like to include a patch; but I'm a bit rusty with Windows shell
> > scripting :-((.
>

Reply via email to