Ignore:
Timestamp:
2005-09-26T14:49:03+12:00 (19 years ago)
Author:
kjdon
Message:

added a new method to LocalLIbraryServer to check that the server.exe is actually running, and restart it if not, and call this when click preview button, so that if local library is down, then it gets restarted.

File:
1 edited

Legend:

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

    r10531 r10642  
    4848import org.greenstone.gatherer.Dictionary;
    4949import org.greenstone.gatherer.Gatherer;
     50import org.greenstone.gatherer.LocalLibraryServer;
    5051import org.greenstone.gatherer.cdm.SearchTypeManager;
    5152import org.greenstone.gatherer.cdm.CollectionDesignManager;
     
    799800        Gatherer.c_man.getCollection().cdm.save(); // save the config file just in case
    800801        configureHomeURL();
     802        if (LocalLibraryServer.isRunning()) {
     803        // if we are using the local library (isRunning is true), we need to make sure it is actually running
     804        LocalLibraryServer.checkServerRunning();
     805        }
    801806        Gatherer.spawnBrowser(homepage);
    802807
Note: See TracChangeset for help on using the changeset viewer.