Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-2, 1.8.6
-
Fix Version/s: 2.0.6, 2.1.0-beta-1
-
Component/s: command line processing
-
Labels:None
-
Environment:win 7 x64, jdk 1.6.0.27, groovy 1.9-beta-3
-
Number of attachments :
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
Issue Links
- relates to
-
GROOVY-5020
invoking groovy with -D seems to mess up main's args in some cases
-
-
GROOVY-5282
upgrade Apache Commons CLI to version 1.3
-