Ignore:
Timestamp:
2009-04-15T14:53:44+12:00 (15 years ago)
Author:
ak19
Message:

Updated several files so that the Server2 code in server.jar interacts with GLI code so that the local GS2 server for Linux works the same way as the GS2 Local Library Server on windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/server/BaseServer.java

    r18868 r18969  
    6262    reloadConfigProperties();
    6363
    64     dictionary = new Dictionary("server", lang, this.getClass().getClassLoader());
    65 
     64    dictionary = new Dictionary("server", lang, this.getClass().getClassLoader()); 
    6665    }
    6766
     
    6968    {
    7069    String auto_start = config_properties.getProperty(BaseServer.Property.AUTOSTART, "true");
    71 
    7270    if (auto_start.equals("true") || auto_start.equals("1")) {
    7371        String start_browser = config_properties.getProperty(BaseServer.Property.START_BROWSER, "true");
     
    7876        else{
    7977        start();
    80         } 
     78        }
     79       
     80        server_control_.setState(java.awt.Frame.ICONIFIED); // minimise the server interface window
    8181    } else {
    8282        reload(); // browser URL or other important properties may not yet be initialised
     
    8686    }
    8787
    88     // package access method
     88    // package access methods
    8989    BaseServerControl getServerControl() {
    9090    return server_control_;
     
    103103    public abstract void reload(); // reload properties, since they may have changed
    104104    protected void preStop() {}
    105 
     105    protected void postStart() {}
     106   
    106107    public void reconfigRequired()
    107108    {
     
    126127           recordError(CONFIGURE_CMD);
    127128       }
    128        reload();
     129       reload(); // work out the browserURL again
    129130       configure_required_ = false;
    130131    }
     
    137138    if (state != RunTarget.SUCCESS){
    138139        recordError(START_CMD);
    139             server_state_ = SERVER_START_FAILED; 
    140            
     140            server_state_ = SERVER_START_FAILED;           
    141141    }               
    142142    else{
    143143        recordSuccess(START_CMD);
    144144            server_state_ = SERVER_STARTED;
     145        postStart();
    145146        }
    146147
Note: See TracChangeset for help on using the changeset viewer.