Changeset 10362


Ignore:
Timestamp:
2005-08-01T10:59:47+12:00 (19 years ago)
Author:
mdewsnip
Message:

Now sets the gli directory path correctly.

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

Legend:

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

    r10342 r10362  
    137137        setCollectDirectoryPath(go.gsdl_path + "collect" + File.separator);
    138138    }
    139     else {
    140         setGLIDirectoryPath(go.gsdl_path + "gli");
    141     }
    142139
    143140    // Users may specify a non-standard collect directory (eg. when running one GLI in a network environment)
  • trunk/gli/src/org/greenstone/gatherer/GathererApplet.java

    r10342 r10362  
    104104        }
    105105    Gatherer.setGLIUserDirectoryPath(gli_user_directory_path);
    106     Gatherer.setGLIDirectoryPath(gli_user_directory_path);
    107106
    108107    // Ensure the GLI user directory exists
     
    111110        System.err.println("Error: Unable to make directory: " + gli_user_directory.toString());
    112111    }
     112
     113    // If we're running as an applet we don't have a local GLI, so use the user directory path as the GLI path
     114    Gatherer.setGLIDirectoryPath(gli_user_directory_path);
    113115
    114116    // Set some global variables so we know how we're running
  • trunk/gli/src/org/greenstone/gatherer/GathererProg.java

    r10342 r10362  
    7777    }
    7878
     79    // We have a local GLI
     80    Gatherer.setGLIDirectoryPath(System.getProperty("user.dir") + File.separator);
     81
    7982    // Create an instance of the Gatherer class, which will parse the args and prepare the rest of the GLI
    8083    Gatherer gatherer = new Gatherer(args);
Note: See TracChangeset for help on using the changeset viewer.