groovy
  1. groovy
  2. GROOVY-3084

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

    Details

    • Number of attachments :
      2

      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

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: