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/cdm/ClassifierManager.java

    r10341 r10342  
    103103
    104104    DebugStream.println("deleting classifiers.dat");
    105     File class_file = new File(Utility.getGLIUserFolder(), "classifiers.dat");
     105    File class_file = new File(Gatherer.getGLIUserDirectoryPath() + "classifiers.dat");
    106106    if (class_file.exists()) {
    107107        return Utility.delete(class_file);
     
    261261    private void saveClassifiers() {
    262262    try {
    263         File classifiers_dat_file = new File(Utility.getGLIUserFolder(), "classifiers.dat");
     263        File classifiers_dat_file = new File(Gatherer.getGLIUserDirectoryPath() + "classifiers.dat");
    264264        FileOutputStream file = new FileOutputStream(classifiers_dat_file);
    265265        ObjectOutputStream out = new ObjectOutputStream(file);
     
    369369    private void loadClassifiers() {
    370370    // Attempt to restore the cached file.
    371     File classifiers_dat_file = new File(Utility.getGLIUserFolder(), "classifiers.dat");
     371    File classifiers_dat_file = new File(Gatherer.getGLIUserDirectoryPath() + "classifiers.dat");
    372372    try {
    373373        FileInputStream file = new FileInputStream(classifiers_dat_file);
Note: See TracChangeset for help on using the changeset viewer.