Changeset 19796


Ignore:
Timestamp:
06/10/09 16:03:34 (12 years ago)
Author:
kjdon
Message:

don't try and parse comments into tokens - quote marks can stuff up the whole config file if there is no space afterwards, eg '. or don't - we work out if our token has finished by whether it ends in the quote mark that we started with

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/collection/BasicCollectionConfiguration.java

    r19220 r19796  
    7676        String command = null;
    7777        while((command = br.readLine()) != null) {
     78          if (command.startsWith("#")) {
     79            // a comment
     80            continue;
     81          }
    7882            if(command.length() > 0) {
    7983            // We have to test the end of command for the special character '\'. If found, remove it and append the next line, then repeat.
     
    9296                continue;
    9397            }
    94 
     98           
    9599            command_type_str = command_type_str.toLowerCase();
    96100            if(command_type_str.equals(StaticStrings.COLLECTIONMETADATA_CREATOR_STR)) {
Note: See TracChangeset for help on using the changeset viewer.