Changeset 20687 for greenstone3

Show
Ignore:
Timestamp:
23.09.2009 14:40:00 (11 years ago)
Author:
ak19
Message:

Fixed a bug that Kathy found: when gsdlsite.cfg is missing and autostart is false, it didn't generate the gsdlsite.cfg from the template .in file before.

Files:
1 modified

Legend:

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

    r20632 r20687  
    8080        server_control_.setState(java.awt.Frame.ICONIFIED); // minimise the server interface window 
    8181    } else { 
     82        if (configure_required_){ 
     83        server_control_.displayMessage(dictionary.get("ServerControl.Configuring")); 
     84        int state = runTarget(CONFIGURE_CMD); 
     85         
     86        if (state != RunTarget.SUCCESS){ 
     87            recordError(CONFIGURE_CMD); 
     88        } 
     89        } 
    8290        reload(); // browser URL or other important properties may not yet be initialised 
     91        configure_required_ = false; 
     92 
    8393        server_state_ = START_SERVER; 
    8494        server_control_.updateControl();