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

Compiler cant find groovy scripts in same directory if path (on windows) has a space

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • None
    • None
    • Windows XP

    Description

      I have 2 groovy scripts:

      Caller.groovy
      ++++++++++++++
      c = new Callee()
      c.hello()

      Callee.groovy
      ++++++++++++++
      class Callee {
      void hello()

      { println "hello, world" }

      }

      When scripts are in the following directory: "C:\fun fun" I run the following command:

      C:>groovy -cp . Caller
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Caller.groovy: 1: unable to resolve class Callee
      @ line 1, column 5.
      c = new Callee()
      ^

      1 error

      If I run from the directory named "C:\fun" it runs fine.

      Conclusion the space in the directory name causes problems for the classloader.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              awbranch Andrew Branch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: