Changeset 15031


Ignore:
Timestamp:
2008-03-03T15:08:45+13:00 (14 years ago)
Author:
mdewsnip
Message:

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

File:
1 edited

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;
Note: See TracChangeset for help on using the changeset viewer.