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!

Location:
trunk/gli/src/org/greenstone/gatherer/cdm
Files:
4 edited

Legend:

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

    r8620 r9045  
    216216        if (formats_changed && Gatherer.c_man.built()) {
    217217        // upload etc/collect.cfg to server to reflect changes
    218         Utility.zipup(collection_name, Utility.CONFIG_FILE);
     218        Utility.zipup(Gatherer.getCollectDirectoryPath(), collection_name, Utility.CONFIG_FILE);
    219219        GathererApplet.upload_url_zip(collection_name, "etc");
    220220        }
  • trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r8606 r9045  
    473473        public void actionPerformed(ActionEvent event) {
    474474        // Open an almost standard file browser to the images folder of the current collection
    475         File images_folder = new File(Gatherer.c_man.getCollectionImages());
     475        File images_folder = new File(Gatherer.c_man.getCollectionImagesDirectoryPath());
    476476        // If images isn't already there, create it
    477477        if(!images_folder.exists()) {
  • trunk/gli/src/org/greenstone/gatherer/cdm/MetadataSetView.java

    r8386 r9045  
    300300            // Re-read all the metadata.xml files to account for this case
    301301            MetadataXMLFileManager.clearMetadataXMLFiles();
    302             MetadataXMLFileManager.loadMetadataXMLFiles(new File(Gatherer.c_man.getCollectionImport()));
     302            MetadataXMLFileManager.loadMetadataXMLFiles(new File(Gatherer.c_man.getCollectionImportDirectoryPath()));
    303303        }
    304304        }
  • 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.