Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.0-beta-2, 1.8.6
-
None
-
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
Attachments
Issue Links
- relates to
-
GROOVY-5020 invoking groovy with -D seems to mess up main's args in some cases
- Closed
-
GROOVY-5282 upgrade Apache Commons CLI to version 1.3
- Closed