Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.6
-
None
-
MS Windows XP
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.