Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
None
-
Win XP
Groovy Version: 1.0 JVM: 1.4.2_13-b06
Description
(Note: Searched for this topic but did not find an issue)
Situation: One groovy file containing one class named like the file. (see att. MyGroovyClass.groovy)
Another groovy file instanciating this other class. (see att. UseGroovyClass.groovy, sorry for not providing it as JUnit test now)
Command: groovy UseGroovyClass.groovy
shall print: Hello World
1) No problem if no blank in current directory where above command is run
2) If path of current directory contains a blank:
a) Calling the above command results in:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, UseGroovyClass.groovy: 2: unable to resolve class MyGroovyClass
@ line 2, column 13.
def value = new MyGroovyClass()
^
b) It is possible to compile MyGroovyClass.groovy with groovyc. If done, no problem occurs when running command.
Attachments
Attachments
Issue Links
- duplicates
-
GROOVY-1787 GroovyClassLoader fails to load a script from a file whose absolute name contains spaces
- Closed
- relates to
-
GROOVY-1787 GroovyClassLoader fails to load a script from a file whose absolute name contains spaces
- Closed