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

Groovy fails to launch scripts from Cygwin

    XMLWordPrintableJSON

Details

    Description

      Here it is:

      $ groovy -version
      Groovy Version: 1.6.0 JVM: 1.6.0_12

      I have the following script that I put in my $HOME/bin on cygwin, where $HOME maps to regular Windows home: C:\Documents and Settings[my_username]

      [my_username] ~/bin
      $ cat test.groovy

      def f = new File(args[0])
      println f.listFiles()

      Now I try to run it from c:

      [my_username] /cygdrive/c

      $ groovy /cygdrive/c/Documents\ and\ Settings/[my_username]/bin/test.groovy .

      /cygdrive/c/Program Files/Groovy/Groovy-1.6.0/bin/startGroovy: line 227: and: command not found
      Caught: java.lang.IllegalArgumentException: C:\ (C:) is a directory not a Groovy source file.

      I do think this is a bug in startGroovy script.

      Attachments

        Activity

          People

            paulk Paul King
            kyrill007 Kyrill Alyoshin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: