Ignore:
Timestamp:
2005-02-15T15:39:48+13:00 (19 years ago)
Author:
mdewsnip
Message:

Made major rearrangements to the way path variables are calculated. This is to facilitate being able to specify a "-collectdir" argument to the GLI so one GLI installation can be used in a networked, multi-user situation. Hope I haven't broken anything!

File:
1 edited

Legend:

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

    r8884 r9045  
    196196        current_coll_name = Gatherer.c_man.getCollection().getName();
    197197
    198         File gsdl_collection_directory;
    199         if (Gatherer.GS3) {
    200         gsdl_collection_directory = new File(Utility.getCollectDir(Configuration.gsdl3_path, Configuration.site_name));
    201         }
    202         else {
    203         gsdl_collection_directory = new File(Utility.getCollectDir(Configuration.gsdl_path));
    204         }
    205 
    206         File[] possible_collections = gsdl_collection_directory.listFiles();
     198        File collect_directory = new File(Gatherer.getCollectDirectoryPath());
     199        File[] possible_collections = collect_directory.listFiles();
    207200        for(int i = 0; possible_collections != null && i < possible_collections.length; i++) {
    208201        File collect_cfg_file = new File(possible_collections[i], Utility.CONFIG_FILE);
Note: See TracChangeset for help on using the changeset viewer.