groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GROOVY-7022) invoking scripts using full path broken in cygwin
Date Sun, 05 Jul 2015 15:29:05 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-7022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pascal Schumacher resolved GROOVY-7022.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.4

Should be fixed by the fix for [GROOVY-7018]. It would be nice if you could check if it works
with a recent snapshot, e.g. [https://oss.jfrog.org/oss-snapshot-local/org/codehaus/groovy/groovy-binary/2.4.4-SNAPSHOT/groovy-binary-2.4.4-20150704.030209-101.zip].
Please reopen if it still does not work. Thanks!

> invoking scripts using full path broken in cygwin
> -------------------------------------------------
>
>                 Key: GROOVY-7022
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7022
>             Project: Groovy
>          Issue Type: Bug
>          Components: GroovyScriptEngine
>    Affects Versions: 2.3.x
>         Environment: Windows 7, Cygwin 1.7.17, Java 7 and 8
>            Reporter: Kevin Schmeichel
>            Priority: Minor
>             Fix For: 2.4.4
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message