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
-
Activity
Paul King
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Affects Version/s | 1.8.6 [ 18245 ] | |
| Affects Version/s | 2.0-beta-2 [ 18072 ] | |
| Affects Version/s | 1.9-beta-3 [ 17494 ] |
Paul King
made changes -
| Link |
This issue relates to |
Paul King
made changes -
| Link | This issue relates to GROOVY-5282 [ GROOVY-5282 ] |
Jan Weitz
made changes -
| Attachment | patch.diff [ 58932 ] |
Paul King
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Paul King [ paulk ] | |
| Fix Version/s | 2.0.6 [ 18852 ] | |
| Fix Version/s | 2.1.0 [ 18598 ] | |
| Resolution | Fixed [ 1 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
that sounds very much like a commons cli problem to me.