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

Running script with '--enoding' param and some script parameters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-2, 1.8.6
    • Fix Version/s: 2.0.6, 2.1.0-beta-1
    • Labels:
      None
    • Environment:
      win 7 x64, jdk 1.6.0.27, groovy 1.9-beta-3

      Description

      Create simple script 'main.groovy':

      args.each {println it}
      

      and try to run it by the following command:
      groovy --encoding=UTF-8 main.groovy -script -param

      The output is:
      script
      -p
      -a
      ram

      while the expected output is:
      -script
      -param

        Attachments

        1. patch.diff
          0.9 kB
          Jan Weitz
        2. proof.png
          46 kB
          Maximilian Michels

          Issue Links

            Activity

              People

              • Assignee:
                paulk Paul King
                Reporter:
                mxm-groovy Maxim Medvedev
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: