Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.5.6
-
Fix Version/s: 1.6.1, 1.5.8, 1.7-beta-1
-
Component/s: command line processing
-
Labels:None
-
Environment:Windows XP
-
Number of attachments :
Description
Groovy does weird things with command line arguments containing *. Makes it very difficult to pass in things like file specs, ant specs and regex expresssions!!! A simple program that prints out the length of the args parameter passed into main procedure - a few are correct but most are wrong:
>groovy fail test args length: 1 >groovy fail * args length: 3 >groovy fail ** args length: 0 >groovy fail "**" args length: 0 >groovy fail "test" " *" args length: 2 >groovy fail "test" "*" args length: 1 >groovy fail "test *" args length: 1 >groovy fail "*test*" args length: 0 >groovy fail "*test*" args length: 0 >groovy fail " *test*" args length: 1
Activity
blackdrag blackdrag
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Priority | Major [ 3 ] | Critical [ 2 ] |
| Fix Version/s | 1.6-beta-2 [ 14261 ] | |
| Fix Version/s | 1.5.7 [ 14242 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.6-beta-2 [ 14261 ] | |
| Fix Version/s | 1.5.7 [ 14242 ] | |
| Fix Version/s | 1.5.8 [ 14630 ] |
Herbert Gerhards
made changes -
| Attachment | startGroovy_V2.bat [ 40140 ] | |
| Attachment | startGroovy_V1.bat [ 40139 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.6.1 [ 14852 ] | |
| Fix Version/s | 1.7-beta-1 [ 14014 ] |
blackdrag blackdrag
made changes -
| Assignee | Jochen Theodorou [ blackdrag ] | |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |