Details
Description
Pass a CliBuilder instance, in its default state with expandArugmentFiles = true, an argument array containing an empty argument ''.
expected: the clibuilder to parse the arguments
actual:
java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.substring(String.java:1934) .... at groovy.util.CliBuilder.expandArgumentFiles(CliBuilder.groovy:296) ....
Attached is code showing how an argument array that parses when expandArgumentFiles is false, throws an exception when it is true.
Thanks for the patch. Should be fixed in the next release.