Changeset 6178


Ignore:
Timestamp:
2003-12-09T12:12:45+13:00 (20 years ago)
Author:
mdewsnip
Message:

A quick and ugly hack to fix a problem where config values are not updated correctly. I'm going to rewrite the Configuration class so all data values are retrieved via access functions, which will remove this nastiness.

File:
1 edited

Legend:

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

    r6130 r6178  
    623623    dialog.dispose();
    624624    dialog = null;
     625
     626    String library_path_string = Gatherer.config.getString("general.exec_address", true);
     627    if (!library_path_string.equals("")) {
     628        try {
     629        Gatherer.config.exec_address = new URL(library_path_string);
     630        }
     631        catch (MalformedURLException error) {
     632        ///ystem.err.println("Error: Bad address: " + exec_address_string);
     633        }
     634    }
     635
    625636    ///ystem.out.println(Dictionary.get("General.Missing_EXEC"));
    626637    }
Note: See TracChangeset for help on using the changeset viewer.