groovy
  1. groovy
  2. GROOVY-3153

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

    Details

    • Number of attachments :
      0

      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

        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)
        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 -
        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
        Paul King made changes -
        Component/s command line processing [ 10445 ]
        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?
        Hide
        blackdrag blackdrag added a comment -

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

        Show
        blackdrag blackdrag added a comment - as per user comment I close the issue for now. We can reopen it any time
        blackdrag blackdrag made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Paul King [ paulk_asert ]
        Fix Version/s 2.0.6 [ 18852 ]
        Fix Version/s 2.1.0 [ 18598 ]
        Resolution Fixed [ 1 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: