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/GathererApplet.java

    r17629 r32153  
    152152    }
    153153   
     154    // For WebGatherer.java, which uses Java Web Start over JNLP to run the repurposed "applet" as application,
     155    // it turned out that for GS3, we need the collectionDirectoryPath set for the subsequent code to work.
     156    // In WebGatherer.java, moved the instantiation of the Gatherer object here, but to avoid major changes to
     157    // this GathererApplet.java class, just calling the relevant line in Gatherer() constructor at this stage:
     158    Gatherer.setCollectDirectoryPath(Gatherer.getGLIUserDirectoryPath() + "collect" + File.separator);
     159   
    154160    File collect_directory = new File(Gatherer.getCollectDirectoryPath());
    155161    if (!collect_directory.exists()) {
Note: See TracChangeset for help on using the changeset viewer.