Changeset 19796

Show
Ignore:
Timestamp:
10.06.2009 16:03:34 (10 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

Files:
1 modified

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)) {