Changeset 16678

Show
Ignore:
Timestamp:
08.08.2008 11:03:17 (11 years ago)
Author:
davidb
Message:

Fixed oversight in GLI reading GS3 collectionConfig.xml where it didn't use the backwards-compatible mapping to rename old Plug->Plugins

Files:
1 modified

Legend:

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

    r16042 r16678  
    13741374        } 
    13751375        catch(Exception exception) { 
     1376        // This catch clause had been left empty.  If this is deliberate then 
     1377        // we should have a comment here explaining why there is no need to 
     1378        // print anything out.  Am assuming this is mistake for now, and 
     1379        // have added in a call to printStackTrace() 
     1380        System.err.println("Malformed plugin statement"); 
     1381        exception.printStackTrace(); 
    13761382        } 
    13771383        return command_element; 
     
    20492055            Element e = (Element)plugin_children.item (i); 
    20502056            String str = e.getAttribute (StaticStrings.NAME_ATTRIBUTE); 
     2057        str = ensureNewPluginName(str); 
    20512058            Element plugin_element = to.createElement (StaticStrings.PLUGIN_ELEMENT); 
    20522059            plugin_element.setAttribute (StaticStrings.TYPE_ATTRIBUTE, str);