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

Problems with commandline arguments in groovy under cygwin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.5.1
    • 1.6-rc-2
    • None
    • None
    • Windows 2000 / Cygwin

    Description

      I have a script that i want to run. The script is located in the current directory. It seems like there
      is a problem with argument parsing.

      cygwin
      xyzas@seicaele /cygdrive/e
      $ groovy linecount.groovy 1
      Caught: java.io.FileNotFoundException: linecount.groovy 1  (e:\\linecount.groovy 1 )
      
      windows cmd
      E:\>groovy linecount.groovy 1
      0 hbase_docs
      0 apps
      
      GROOV_HOME
      $ export | egrep "GROOVY_HOME"
      declare -x GROOVY_HOME="c:\\groovy"
      

      I tried to just run groovy without any arguments and that also failes:

      cygwin
      xyzas@seicaele /cygdrive/e
      $ groovy
      Caught: java.io.FileNotFoundException:  (e:\)
      

      But this works:

      cygwin
      xyzas@seicaele  /cygdrive/e
      $ groovy linecount.groovy
      0 hbase_docs 
      0 apps 
      

      Attachments

        Activity

          People

            paulk Paul King
            pure Per Arneng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: