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

Command line option for classpath (--cp/--classpath) is broken on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.2, 1.5.3, 1.5.4
    • 1.5.5, 1.6-beta-1
    • None
    • None
    • Windows XP

    Description

      The fix for issue GROOVY-2515 broke the classpath options -cp and -classpath in startGroovy.bat. The options are still evaluated and the classpath is set correctly, but the options are no longer stripped from the command line but passed on to the starter main class. GroovyMain, for example, then finds the option -c in its command line and complains about the missing encoding:

      D:\Tmp>groovy -cp test.jar test.groovy
      error: no argument for:c
      usage: groovy [options] [args]
      ....
      

      The attached startGroovy.bat fixes this problem. However, I am afraid that it uses features of the set command that are only available in Windows NT and above.

      Attachments

        1. startGroovy.bat
          6 kB
          anm

        Activity

          People

            paulk Paul King
            anm anm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: