Changeset 8248


Ignore:
Timestamp:
2004-10-08T14:17:01+13:00 (20 years ago)
Author:
mdewsnip
Message:

Removed the getCollectionDir() function from Utility, since it is dependent on the Gatherer class.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
3 edited

Legend:

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

    r8243 r8248  
    158158        file_path = MSMUtils.getValue(metadata_element);
    159159        if (!file_path.startsWith(File.separator)) {
    160         String collection_dir = Utility.getCollectionDir();
     160        String collection_dir = Gatherer.c_man.getCollectionDirectory();
    161161        file_path = collection_dir + file_path;
    162162        }
  • trunk/gli/src/org/greenstone/gatherer/msm/MetadataXMLFileManager.java

    r8243 r8248  
    360360        if ((Utility.isWindows() == true && filename.charAt(1) != ':') ||
    361361            (Utility.isWindows() == false && !filename.startsWith(File.separator))) {
    362             String collection_dir = Utility.getCollectionDir();
     362            String collection_dir = Gatherer.c_man.getCollectionDirectory();
    363363            File full_file = new File(collection_dir + filename);
    364364            file = full_file;
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r8243 r8248  
    493493    }
    494494
    495     public static String getCollectionDir() {
    496     String this_col_dir;
    497 
    498     String col_name = Gatherer.c_man.getCollection().getName();
    499 
    500     if (Gatherer.GS3) {
    501         this_col_dir = getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, col_name);
    502     } else {
    503         this_col_dir = getCollectionDir(Configuration.gsdl_path, col_name);
    504        
    505     }
    506 
    507     return this_col_dir;
    508     }
    509 
    510495   
    511496    /** Method which constructs the configuration file given a certain collection.
Note: See TracChangeset for help on using the changeset viewer.