Ignore:
Timestamp:
2018-02-26T19:57:21+13:00 (6 years ago)
Author:
ak19
Message:

2 Bugfixes and tidying up errorhandling in JarTools. 1. Dr Bainbridge fixed issue surrounding env.Path rather than env.PATH being used on Windows, while the empty env.PATH was being concatenated as a variable name by build.xml. This resulted in a cyclical reference, noticed when running the GLI Web Start Application (converted from GLI Applet). Fix is in build.xml. 2. My bugfix to WebGatherer.java, the new GLI Web Start Application. The collectionDir wasn't set correctly until the Gatherer object was instantiated, but the collect dir needed to be known by other code beforehand. So shifted the Gatherer object instantiation up a bit. 3. Can't yet reproduce the Exception seen twice before when running GLI Web Start application. The exception was thrown in ZipTools.java. Tested by rerunning the applet repeatedly, but it hasn't struck again yet. Perhaps it's been fixed now because of the other changes?

File:
1 edited

Legend:

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

    r32150 r32153  
    194194    }
    195195   
     196    // Create an instance of the Gatherer class, which will parse the args and prepare the rest of the GLI
     197    gatherer = new Gatherer(args); // Do this early as it will also call Gatherer.setCollectDirectoryPath(), because we need that to have been set hereafter.
     198               
    196199    File collect_directory = new File(Gatherer.getCollectDirectoryPath());
    197200    if (!collect_directory.exists()) {
     
    217220        unzipFromJar("metadata.zip", Gatherer.getGLIDirectoryPath());
    218221    }
    219 
    220     // Create an instance of the Gatherer class, which will parse the args and prepare the rest of the GLI
    221     gatherer = new Gatherer(args);
    222222
    223223    gatherer.openGUI();
Note: See TracChangeset for help on using the changeset viewer.