Changeset 5109


Ignore:
Timestamp:
2003-08-07T16:27:30+12:00 (21 years ago)
Author:
kjdon
Message:

added a few new methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSFile.java

    r4860 r5109  
    4343public class GSFile {
    4444
     45    static public String dtdDir(String gsdl3_home) {
     46    return gsdl3_home + File.separatorChar + "resources" +
     47        File.separatorChar + "dtd";
     48    }
    4549    /**  site config file path */
    4650    static public String siteConfigFile(String site_home) {
     
    6973
    7074    }
     75    /** collection init file path*/
     76    static public String collectionInitFile(String site_home,
     77                        String collection_name) {
     78    return site_home+File.separatorChar+"collect"+
     79            File.separatorChar+collection_name+
     80            File.separatorChar+"etc"+
     81            File.separatorChar+"collectionInit.xml";
     82
     83    }
    7184
    7285    /** collection build config file path*/
     
    103116    return collectionBaseDir(site_home, collection_name) +
    104117        File.separatorChar+"building";
     118    }
     119    /** collection building directory path */   
     120    static public String collectionImportDir(String site_home,
     121                       String collection_name) {
     122    return collectionBaseDir(site_home, collection_name) +
     123        File.separatorChar+"import";
    105124    }
    106125    /** collection building directory path */   
     
    148167    }
    149168   
    150 
     169    static public String siteStylesheetFile(String site_home,
     170                        String filename) {
     171    return site_home+File.separatorChar + "transform" +
     172        File.separatorChar + filename;
     173    }
     174   
     175   
    151176    /** returns the absolute path to a stylesheet
    152177     * stylesheets are looked for in the following order
Note: See TracChangeset for help on using the changeset viewer.