Changeset 15031

Show
Ignore:
Timestamp:
03.03.2008 15:08:45 (12 years ago)
Author:
mdewsnip
Message:

Fixed bug when parsing quoted arguments starting with a minus character.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java

    r14635 r15031  
    293293                value = tokenizer.nextToken (); 
    294294                // Test if the value is actually a name, and if so add the name by itself, then put value into name so that it is parsed correctly during the next loop. 
    295                 if(value.startsWith (StaticStrings.MINUS_CHARACTER)) { 
     295        // The value is not a name if it contains a space character: it's a quoted value 
     296                if (value.startsWith(StaticStrings.MINUS_CHARACTER) && value.indexOf(StaticStrings.SPACE_CHARACTER) == -1) { 
    296297                    arguments.put (name, null); 
    297298                    name = value;