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

-cp and -clasaspath don't work for Groovy.bat in Vista

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.5.4
    • 1.5.5, 1.6-beta-1
    • None
    • None

    Description

      I have 2 files:
      A.groovy :

      package test
      class A {
      def test()

      { test1() }

      def test1() {
      }
      }

      B.groovy:

      package test
      class B extends A {
      static void main(args)

      { new B().test() }

      def test1()

      { super.test1() }

      }

      On Vista,

      If I call "groovy -cp . B" I get:

      error: no argument for:c
      usage: groovy [options] [args]
      options:
      -p process files line by line and print result
      (see also -n)
      D,-define <name=value> define a system property
      a,-autosplit <splitPattern> split lines using splitPattern (default '\s')

      using implicit 'split' variable
      c,-encoding <charset> specify the encoding of the files
      d,-debug debug mode will print out full stack traces
      -e <script> specify a command line script
      h,-help usage information
      -i <extension> modify files in place; create backup if
      extension is given (e.g. '.bak')
      -l <port> listen on a port and process inbound lines
      -n process files line by line using implicit
      'line' variable
      v,-version display the Groovy and JVM versions

      If I call "groovy -classpath B" I get:

      Caught: java.lang.IllegalArgumentException: D:_projects\temp (D:_projects\temp
      ) is a directory not a Groovy source file.

      Attachments

        Activity

          People

            paulk Paul King
            boardbloke Neill Robbins
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: