Changeset 10244


Ignore:
Timestamp:
2005-07-13T15:00:55+12:00 (19 years ago)
Author:
mdewsnip
Message:

A few fixes to previous changes for building collections remotely using a local GLI.

File:
1 edited

Legend:

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

    r10242 r10244  
    9090
    9191    static public boolean isApplet = false;
    92     static public boolean isGsdlRemote = true;
     92    static public boolean isGsdlRemote = false;
    9393    static public String cgiBase = "";
    9494
     
    128128    }
    129129
     130    // Set the Greenstone path and collect directory specially when running with a remote Greenstone
     131    if (isGsdlRemote) {
     132        go.gsdl_path = Utility.getGLIUserFolder() + File.separator;
     133        Gatherer.setCollectDirectoryPath(go.gsdl_path + "collect" + File.separator);
     134    }
     135
     136    // Users may specify a non-standard collect directory (eg. when running one GLI in a network environment)
    130137    if (go.collect_directory_path != null) {
    131         // Use non-standard collect directory (for when running one GLI in a network environment)
    132138        Gatherer.setCollectDirectoryPath(go.collect_directory_path);
    133139    }
     
    137143        File gli_user_directory = Utility.getGLIUserFolder();
    138144
    139         Utility.BASE_DIR = gli_user_directory.toString();
    140         if (!Utility.BASE_DIR.endsWith(File.separator)) {
    141         Utility.BASE_DIR += File.separator;
    142         }
    143 
     145        Utility.BASE_DIR = go.gsdl_path;
    144146        Utility.METADATA_DIR = Utility.BASE_DIR + "metadata" + File.separator;
    145147        Utility.TMP_DIR = Utility.BASE_DIR + "tmp" + File.separator;
     
    149151        Configuration.GS3_CONFIG_XML = "config3Remote.xml";
    150152
    151         Gatherer.setCollectDirectoryPath(go.gsdl_path + "collect" + File.separator);
    152153        File col_dir = new File(Gatherer.getCollectDirectoryPath());
    153154        if (!col_dir.exists()) {
    154 
    155155        if (JarTools.isInJar(Utility.COLLECT_ZIP)) {
    156156            // Dig out collect.zip from JAR file and unzip it (thereby
Note: See TracChangeset for help on using the changeset viewer.