Groovy
  1. Groovy
  2. GROOVY-3153

groovy, groovysh, groovyconsole, etc Cannot use spaces in supplied classpath -cp

    Details

      Description

      appears to be broken in groovy 1.5.7 and in 1.6-beta-2

      C:_sources\src - xxxx yyyy>groovy -cp "C:_deployments\xxxx yyyy\temp_build" groovylink.groovy
      Caught: java.io.FileNotFoundException: C:_sources\src - xxxx yyyy\yyyy\temp_build groovylink.groovy (C:_sources\src - xxxx yyyy\yyyy\temp_build groovylink.groovy)
      

      notice that what I entered for the classpath has a space between the xxxx and the yyyy (the file not found message is mangling the path even more)

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1494d 6h 18m 1 Jochen Theodorou 19/Dec/12 04:39
        Resolved Resolved Closed Closed
        2d 20h 31m 1 Paul King 22/Dec/12 01:10
        Mark Thomas made changes -
        Assignee paulk_asert [ paulk_asert ] Paul King [ paulk ]
        Mark Thomas made changes -
        Workflow jira [ 12970053 ] Default workflow, editable Closed status [ 12977823 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12732155 ] Default workflow, editable Closed status [ 12744001 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jochen Theodorou made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Paul King [ paulk_asert ]
        Fix Version/s 2.1.0 [ 18598 ]
        Fix Version/s 2.0.6 [ 18852 ]
        Resolution Fixed [ 1 ]
        Hide
        Jochen Theodorou added a comment -

        as per user comment I close the issue for now. We can reopen it any time

        Show
        Jochen Theodorou added a comment - as per user comment I close the issue for now. We can reopen it any time
        Hide
        Pascal Schumacher added a comment -
        cptest.groovy
        println org.apache.log4j.Category.class
        
        D:\>D:\groovy-2.1.0-SNAPSHOT\bin\groovy.bat -cp "D:\log4j 1.2.17\log4j-1.2.17.jar" cptest.groovy
        class org.apache.log4j.Category
        

        works for me under Windows XP using 2.1.0 SNAPSHOOT. Perhaps GROOVY-5191 also fixed this?

        Show
        Pascal Schumacher added a comment - cptest.groovy println org.apache.log4j.Category.class D:\>D:\groovy-2.1.0-SNAPSHOT\bin\groovy.bat -cp "D:\log4j 1.2.17\log4j-1.2.17.jar" cptest.groovy class org.apache.log4j.Category works for me under Windows XP using 2.1.0 SNAPSHOOT. Perhaps GROOVY-5191 also fixed this?
        Paul King made changes -
        Component/s command line processing [ 10445 ]
        Paul King made changes -
        Summary groovy, groovysh, groovyconsole, etc Cannot use spaces in supplied classpath -cp and also -cp does not show up in -h help message groovy, groovysh, groovyconsole, etc Cannot use spaces in supplied classpath -cp
        Hide
        Paul King added a comment -

        Removed help message issues from title as that is already covered in GROOVY-1525

        Show
        Paul King added a comment - Removed help message issues from title as that is already covered in GROOVY-1525
        Paul King made changes -
        Field Original Value New Value
        Description appears to be broken in groovy 1.5.7 and in 1.6-beta-2

        C:_sources\src - xxxx yyyy>groovy -cp "C:_deployments\xxxx yyyy\temp_build" groovylink.groovy
        Caught: java.io.FileNotFoundException: C:_sources\src - xxxx yyyy\yyyy\temp_build groovylink.groovy (C:_sources\src - xxxx yyyy\yyyy\temp_build groovylink.groovy)

        notice that what I entered for the classpath has a space between the xxxx and the yyyy (the file not found message is mangling the path even more)
        appears to be broken in groovy 1.5.7 and in 1.6-beta-2

        {noformat}
        C:_sources\src - xxxx yyyy>groovy -cp "C:_deployments\xxxx yyyy\temp_build" groovylink.groovy
        Caught: java.io.FileNotFoundException: C:_sources\src - xxxx yyyy\yyyy\temp_build groovylink.groovy (C:_sources\src - xxxx yyyy\yyyy\temp_build groovylink.groovy)
        {noformat}

        notice that what I entered for the classpath has a space between the xxxx and the yyyy (the file not found message is mangling the path even more)
        Levi Yourchuck created issue -

          People

          • Assignee:
            Paul King
            Reporter:
            Levi Yourchuck
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development