Changeset 17798

Show
Ignore:
Timestamp:
10.11.2008 11:36:12 (11 years ago)
Author:
kjdon
Message:

always update config file unless version numbers match

Files:
1 modified

Legend:

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

    r17094 r17798  
    261261    String new_version = new_document.getDocumentElement().getAttribute(StaticStrings.VERSION_ATTRIBUTE); 
    262262    String old_version = old_document.getDocumentElement().getAttribute(StaticStrings.VERSION_ATTRIBUTE); 
    263     if (new_version.compareTo(old_version) <= 0) { 
     263    if (new_version.equals(old_version)) { 
    264264        // Don't need to update file 
    265265        return false; 
    266266    } 
    267267 
    268     System.err.println("Updating user config.xml from version " + old_version + " to version " + new_version + "..."); 
     268    System.err.println("Converting user config.xml from version " + old_version + " to version " + new_version + "..."); 
    269269 
    270270    // Build up the new user config.xml file from the template config.xml with the user's preferences added