Ignore:
Timestamp:
2007-05-03T09:12:21+12:00 (17 years ago)
Author:
xiao
Message:

Changes made to look for collectionConfig.xml in gs3 mode and collect.cfg in gs2 mode, rather than presumably only for the file collect.cfg.

File:
1 edited

Legend:

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

    r13586 r14041  
    213213        File[] possible_collections = collect_directory.listFiles();
    214214        for(int i = 0; possible_collections != null && i < possible_collections.length; i++) {
    215         File collect_cfg_file = new File(possible_collections[i], Utility.CONFIG_FILE);
     215        String file_name = (Gatherer.GS3)? Utility.CONFIG_GS3_FILE : Utility.CONFIG_FILE;
     216        File collect_cfg_file = new File(possible_collections[i], file_name);
    216217        if (collect_cfg_file.exists()) {
    217218            BasicCollectionConfiguration collect_cfg = new BasicCollectionConfiguration(collect_cfg_file);
Note: See TracChangeset for help on using the changeset viewer.