groovy

Installation of Groovy in a Path the contains spaces doesn't work (eg "Program Files")

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.5.4
  • Fix Version/s: 1.5.5, 1.6-beta-1
  • Labels:
    None
  • Environment:
    Win XP SP2
  • Number of attachments :
    0

Description

if groovy is installed in a path that contains spaces all of the groovy tools fail with the following exception:

error: file not found: org.codehaus.groovy.tools.FileSystemCompiler

Activity

Hide
Paul King added a comment -

I don't have this problem locally.
Did you use the windows installer to install Groovy?
Do you have GROOVY_HOME set?

Show
Paul King added a comment - I don't have this problem locally. Did you use the windows installer to install Groovy? Do you have GROOVY_HOME set?
Hide
Reto Kleeb added a comment -

I used the zipped bin release and GROOVY_HOME is set.

I can reproduce the error quite easily: Put a space in one of the foldernames in the installation path, edit GROOVY_HOME to match the new path -> error. Remove the space again, edit GROOVY_HOME and it works again.

I also tried to put the path in GROOVY_HOME into " which lead to:
{
C:\reto>set
[...]
GROOVY_HOME="D:\temp\groovy install\groovy-binary-1.5.4\groovy-1.5.4"
[...]
C:\reto>groovy -v
install\groovy-binary-1.5.4\groovy-1.5.4"" was unexpected at this time.
}

Show
Reto Kleeb added a comment - I used the zipped bin release and GROOVY_HOME is set. I can reproduce the error quite easily: Put a space in one of the foldernames in the installation path, edit GROOVY_HOME to match the new path -> error. Remove the space again, edit GROOVY_HOME and it works again. I also tried to put the path in GROOVY_HOME into " which lead to: { C:\reto>set [...] GROOVY_HOME="D:\temp\groovy install\groovy-binary-1.5.4\groovy-1.5.4" [...] C:\reto>groovy -v install\groovy-binary-1.5.4\groovy-1.5.4"" was unexpected at this time. }
Hide
Reto Kleeb added a comment -

sorry...messed up with the formatting

 
C:\reto>set 
[...] 
GROOVY_HOME="D:\temp\groovy install\groovy-binary-1.5.4\groovy-1.5.4" 
[...] 
C:\reto>groovy -v 
install\groovy-binary-1.5.4\groovy-1.5.4"" was unexpected at this time. 
Show
Reto Kleeb added a comment - sorry...messed up with the formatting
 
C:\reto>set 
[...] 
GROOVY_HOME="D:\temp\groovy install\groovy-binary-1.5.4\groovy-1.5.4" 
[...] 
C:\reto>groovy -v 
install\groovy-binary-1.5.4\groovy-1.5.4"" was unexpected at this time. 
Hide
Paul King added a comment -

Can you try removing the double quotes from around JAVA_HOME and possibly GROOVY_HOME

Show
Paul King added a comment - Can you try removing the double quotes from around JAVA_HOME and possibly GROOVY_HOME
Hide
Reto Kleeb added a comment -

i never had my JAVA_HOME in double quotes and I just had GROOVY_HOME in double quotes to see if that could fix the problem, but it didnt.

this is my current setup that causes the error

 
C:\reto>set
JAVA_HOME=C:\Program Files\Java\jdk1.6.0
GROOVY_HOME=D:\temp\groovy install\groovy-binary-1.5.4\groovy-1.5.4
Path=[...]D:\temp\groovy install\groovy-binary-1.5.4\groovy-1.5.4\bin
C:\reto>groovy -v
Caught: java.io.FileNotFoundException: C:\reto\groovy.ui.GroovyMain (C:\reto\groovy.ui.GroovyMain)
Show
Reto Kleeb added a comment - i never had my JAVA_HOME in double quotes and I just had GROOVY_HOME in double quotes to see if that could fix the problem, but it didnt. this is my current setup that causes the error
 
C:\reto>set
JAVA_HOME=C:\Program Files\Java\jdk1.6.0
GROOVY_HOME=D:\temp\groovy install\groovy-binary-1.5.4\groovy-1.5.4
Path=[...]D:\temp\groovy install\groovy-binary-1.5.4\groovy-1.5.4\bin
C:\reto>groovy -v
Caught: java.io.FileNotFoundException: C:\reto\groovy.ui.GroovyMain (C:\reto\groovy.ui.GroovyMain)
Hide
Paul King added a comment -

I can replicate the problem. Patches welcome. Otherwise I will look further hopefully in the next few days.

Show
Paul King added a comment - I can replicate the problem. Patches welcome. Otherwise I will look further hopefully in the next few days.
Hide
Reto Kleeb added a comment -

Had a quick look at the code but couldn't find anything that quickly. Unfortunately I'm busy with lots of other things the next few days so I won't be able to provide anything that soon.

Show
Reto Kleeb added a comment - Had a quick look at the code but couldn't find anything that quickly. Unfortunately I'm busy with lots of other things the next few days so I won't be able to provide anything that soon.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: