Changeset 4344


Ignore:
Timestamp:
2003-05-27T14:40:41+12:00 (21 years ago)
Author:
kjdon
Message:

added some methods for the new log directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r4341 r4344  
    110110     static final public String INDEX_DIR = "index" + File.separator;
    111111     static final public String LANGUAGE_ATTRIBUTE = "language";
     112     /** Definition of an important directory name, in this case the log directory for the collection. */
     113     static final public String LOG_DIR = "log" + File.separator;
    112114     /** Definition of an important directory name, in this case the location of the expected collection metadata sets.. */
    113115     static final public String META_DIR = "metadata" + File.separator; // Col. Copy
     
    630632          return col_dir + INDEX_DIR;
    631633     }
     634     /** Method which constructs the log directory given a certain collection.
     635      * @param col_dir The location of the collection directory as a <strong>String</strong>.
     636      * @return The location of the given collections log directory, also as a <strong>String</strong>.
     637      */
     638     public static String getLogDir(String col_dir) {
     639          return col_dir + LOG_DIR;
     640     }
    632641     /** Determine this machines name.
    633642      * @return The name as a <strong>String</strong>.
Note: See TracChangeset for help on using the changeset viewer.