Groovy
  1. Groovy
  2. GROOVY-5191

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical 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

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

        Issue Links

          Activity

          Maximilian Michels created issue -
          Paul King made changes -
          Field Original Value New Value
          Affects Version/s 2.0-beta-2 [ 18072 ]
          Affects Version/s 1.9-beta-3 [ 17494 ]
          Affects Version/s 1.8.6 [ 18245 ]
          Paul King made changes -
          Link This issue relates to GROOVY-5020 [ GROOVY-5020 ]
          Paul King made changes -
          Link This issue relates to GROOVY-5282 [ GROOVY-5282 ]
          Jan Weitz made changes -
          Attachment patch.diff [ 58932 ]
          Paul King made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.0.6 [ 18852 ]
          Fix Version/s 2.1.0 [ 18598 ]
          Assignee Paul King [ paulk ]
          Resolution Fixed [ 1 ]
          Paul King made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
          Mark Thomas made changes -
          Workflow jira [ 12734115 ] Default workflow, editable Closed status [ 12745882 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
          Mark Thomas made changes -
          Workflow jira [ 12971602 ] Default workflow, editable Closed status [ 12979412 ]
          Mark Thomas made changes -
          Reporter Maximilian Michels [ mxm ] Maxim Medvedev [ mxm-groovy ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development