Ignore:
Timestamp:
2009-06-08T15:16:34+12:00 (15 years ago)
Author:
ak19
Message:

Created new variable in Gatherer.java called isLocalLibrary that defaults to false and gets initialised upon calling LocalLibraryServer.start(). This variable is now also used in PreviewButton.java so that the Local Library Server is still working with a GSI interface launched either via GLI or independently, and still works with an external apache-web server.

File:
1 edited

Legend:

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

    r19678 r19758  
    121121    static public boolean isApplet = false;
    122122    static public boolean isGsdlRemote = false;
     123    static public boolean isLocalLibrary = false;
    123124
    124125    /* TODO: If we're using local GLI, collections are built locally. If we're using client-GLI
     
    349350        }
    350351        else { // local greenstone: Start up the local library server, if that's what we want
    351         if (local_library_path != null && !GS3) {
    352             LocalLibraryServer.start(gsdl_path, local_library_path);
    353         }
     352        if (!GS3) {
     353            isLocalLibrary = LocalLibraryServer.start(gsdl_path, local_library_path);
     354        }
     355        // else web library: GS server is local, but doesn't use the webserver included with GS2
    354356        }
    355357       
     
    369371        // It is not necessary if an independent GSI was launched and the user hasn't pressed Enter Library yet
    370372        DebugStream.println("Configuration.library_url = " + Configuration.library_url);
    371         if (Configuration.library_url == null && (LocalLibraryServer.isRunning() && !LocalLibraryServer.isURLPending())) {
     373        if (Configuration.library_url == null && (isLocalLibrary && !LocalLibraryServer.isURLPending())) {
    372374        missingEXEC();
    373375        }
Note: See TracChangeset for help on using the changeset viewer.