Changeset 313 for trunk/JavaHelperLib/src/de/ugoe/cs/util/console
- Timestamp:
- 12/14/11 13:28:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/CommandParser.java
r223 r313 145 145 startArrayparameter = false; 146 146 } 147 if (i < commandChars.length && quote && commandChars[i] == '\'') {147 if (i < commandChars.length && quote && !startArrayparameter && commandChars[i] == '\'') { 148 148 // end of parameter with ' 149 149 i++; // skip ' … … 152 152 arrayBuffer.add((new String(buffer)).trim()); 153 153 } 154 if (i < commandChars.length && !quote 154 if (i < commandChars.length && !quote && !startArrayparameter 155 155 && Character.isWhitespace(commandChars[i])) { 156 156 startArrayparameter = true; … … 190 190 if (bufferPos > 0) { 191 191 if (isArray) { 192 arrayBuffer.add((new String(buffer)).trim());193 parameters.add(arrayBuffer );192 //arrayBuffer.add((new String(buffer)).trim()); 193 parameters.add(arrayBuffer.toArray(new String[0])); 194 194 } 195 195 if (isString) {
Note: See TracChangeset
for help on using the changeset viewer.