Groovy
  1. Groovy
  2. GROOVY-3084

Groovy scripts can't access the 'args' property anymore to get the arguments from the command line

    Details

      Description

      macpro:~ sam$ cat /tmp/test.groovy
      println args

      macpro:~ sam$ ~/Software/groovy-1.6-beta-2/bin/groovy /tmp/test.groovy
      Caught: groovy.lang.MissingPropertyException: No such property: args for class: test
      at test.run(test.groovy:1)

      The exact same thing will work on any previous version of groovy.

      1. Groovy3084Patch.txt
        0.5 kB
        Roshan Dawrani
      2. Test3084.groovy
        0.2 kB
        Roshan Dawrani

        Activity

          People

          • Assignee:
            Paul King
            Reporter:
            Sam Pullara
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development