Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Windows 7, Cygwin 1.7.17, Java 7 and 8
Description
I installed groovy using:
- gvm install groovy 2.3.6
Then created ~/tmp/Test.groovy:
#!/usr/bin/env groovy
class Test {
static main(args)
{ println("testing") }}
If I try to run this as:
- ~/tmp/Test.groovy
I get the following error:
Caught: java.net.MalformedURLException: unknown protocol: c
java.net.MalformedURLException: unknown protocol: c
Same error if I use a full path (i.e., /cygdrive/c/...). However, I can run it from my home directory using a relative path:
- tmp/Test.groovy
This runs fine and prints "testing".
I installed groovy 2.2.2 using gvm and can run the same script no problem using ~ or the full path.
Attachments
Issue Links
- is related to
-
GROOVY-7018 GroovyClassLoader addClasspath RegexPattern issue
- Closed