Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1833

blank in path makes calling one groovy file from another fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1-beta-1
    • 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

        1. MyGroovyClass.groovy
          0.1 kB
          Dirk Detering
        2. UseGroovyClass.groovy
          0.1 kB
          Dirk Detering

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              det Dirk Detering
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: