groovy/groovy-core — pull request #28 by weitzj (2012-02-19 16:04:49+00:00)
Title: Fix groovy 5191 / GroovyMain scriptFile args array construction

Hi,

you can find information at http://jira.codehaus.org/browse/GROOVY-5191.

The title for bug Groovy 5191 itself is a bit misleading, since it does not have to do anything with
encoding issues, but instead how the args array for the scriptFile is generated.

Current solution:
groovy [options]
Pass all 'args' AFTER && BEFORE the scriptfile, which were not used by the Apache Commons CLI Options.

This fix:
groovy [options] [scriptName scriptArgs]
If we start a groovy scriptFile from the commandline, pass all args AFTER the scriptFile as an 'args' array to the scriptfile.

Greets,

Jan