Changeset 313


Ignore:
Timestamp:
12/14/11 13:28:56 (12 years ago)
Author:
sherbold
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaHelperLib/src/de/ugoe/cs/util/console/CommandParser.java

    r223 r313  
    145145                                        startArrayparameter = false; 
    146146                                } 
    147                                 if (i < commandChars.length && quote && commandChars[i] == '\'') { 
     147                                if (i < commandChars.length && quote && !startArrayparameter && commandChars[i] == '\'') { 
    148148                                        // end of parameter with ' 
    149149                                        i++; // skip ' 
     
    152152                                        arrayBuffer.add((new String(buffer)).trim()); 
    153153                                } 
    154                                 if (i < commandChars.length && !quote 
     154                                if (i < commandChars.length && !quote && !startArrayparameter 
    155155                                                && Character.isWhitespace(commandChars[i])) { 
    156156                                        startArrayparameter = true; 
     
    190190                if (bufferPos > 0) { 
    191191                        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])); 
    194194                        } 
    195195                        if (isString) { 
Note: See TracChangeset for help on using the changeset viewer.