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

groovy batch file doesn't work if -cp specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-5
    • 1.0-JSR-4
    • None
    • None
    • Win XP

    Description

      On Unix I can do:

      groovy -cp test.jar test.g

      On Windows, the same command doesn't work:

      Caught: java.io.FileNotFoundException: -cp (The system cannot find the file specified)
      java.io.FileNotFoundException: -cp (The system cannot find the file specified)

      This is the command that actually gets executed:

      "C:\Programs\Java\bin\java.exe" "-Xmx128m" -Dprogram.name="" -Dgroovy.home="C:\Programs\Groovy" -Dtools.jar="C:\Programs\Java\lib\tools.jar" -Dclassworlds.conf="C:\Programs\Groovy\conf\groovy-classworlds.conf" -classpath "C:\Programs\Groovy\lib\classworlds-1.0-rc2.jar;;..\..\dist\expasy.jar" org.codehaus.classworlds.Launcher -cp ..\..\dist\expasy.jar test.g

      Note the extra -cp near the end.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            ejain Eric Jain
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: