Ignore:
Timestamp:
2004-05-13T16:37:41+12:00 (20 years ago)
Author:
kjdon
Message:

added a couple of gs3 path methods

File:
1 edited

Legend:

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

    r7289 r7324  
    446446    return col_dir + ARCHIVE_DIR;
    447447    }
     448
    448449    /** Method which constructs the build directory given a certain collection.
    449450     * @param col_dir The location of the collection directory as a <strong>String</strong>.
     
    468469    public static String getCollectDir(String gsdl_path) {
    469470    return gsdl_path + COL_DIR;
     471    }
     472    static public String getCollectDir(String gsdl3_path, String site_name) {
     473    return getSitesDir(gsdl3_path) + site_name + File.separator + COL_DIR;
    470474    }
    471475   
     
    477481    public static String getCollectionDir(String gsdl_path, String coll_name) {
    478482    return getCollectDir(gsdl_path) + coll_name + File.separator;
     483    }
     484    public static String getCollectionDir(String gsdl3_path, String site_name, String coll_name) {
     485    return getCollectDir(gsdl3_path, site_name) + coll_name + File.separator;
    479486    }
    480487   
     
    651658    }
    652659
    653 
     660   
    654661    /* static private File getRecycleDirectory() {
    655662    return new File(RECYCLE);
    656663    } */
    657664
     665
     666    static public String getSitesDir(String gsdl3_path) {
     667    return gsdl3_path + File.separator + "web"
     668        + File.separator + "sites" + File.separator;
     669
     670    }
    658671    /** Determine whether a character is a hexidecimal one.
    659672     * @param chr The <i>char</i> in question.
Note: See TracChangeset for help on using the changeset viewer.