Ignore:
Timestamp:
2005-07-28T15:50:17+12:00 (19 years ago)
Author:
mdewsnip
Message:

Tidied up a lot of path variables. These were all over the place, and were often duplicated. Now all GLI related paths are accessed via static methods in the Gatherer class.

File:
1 edited

Legend:

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

    r10242 r10342  
    6161    }
    6262
     63    // Determine the GLI user directory path
     64    String gli_user_directory_path = System.getProperty("user.home") + File.separator;
     65        if (Utility.isWindows()) {
     66        gli_user_directory_path += "Application Data" + File.separator + "Greenstone" + File.separator + "GLI" + File.separator;
     67        }
     68        else {
     69            gli_user_directory_path += ".gli" + File.separator;
     70        }
     71    Gatherer.setGLIUserDirectoryPath(gli_user_directory_path);
     72
    6373    // Ensure the GLI user directory exists
    64         File gli_user_directory = Utility.setGLIUserFolder(null);  // Defaults to user's home area
     74        File gli_user_directory = new File(gli_user_directory_path);
    6575    if (!gli_user_directory.exists() && !gli_user_directory.mkdirs()) {
    6676        System.err.println("Error: Unable to make directory: " + gli_user_directory.toString());
Note: See TracChangeset for help on using the changeset viewer.