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

invoking scripts using full path broken in cygwin

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.4
    • Component/s: GroovyScriptEngine
    • Labels:
      None
    • Environment:
      Windows 7, Cygwin 1.7.17, Java 7 and 8

      Description

      I installed groovy using:

      1. 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:

      1. ~/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:

      1. 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

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                schmeic Kevin Schmeichel
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: