Ignore:
Timestamp:
2009-04-01T19:31:09+13:00 (15 years ago)
Author:
ak19
Message:

Updated Server files for Linux GS2 Local Library Server to work the same way as the Windows GS2 LLS. Basically the major difference is that build.properties is no longer used but glisite.cfg or llssite.cfg depending on whether or not gs2-server.sh is launched from gli. There are a few additional changes required for this to keep it consistent with the way the Windows GS2 LLS works: storing the preview URL in glisite.cfg/llssite.cfg while the server is running and removing it when the server has stopped, Server2.java's main method taking the configfile as an additional parameter (and corresponding adjustments in the gsicontrol.sh script of GS2).

File:
1 edited

Legend:

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

    r18693 r18868  
    132132    public void updateControl(){
    133133        switch (server.getServerState()){
     134    case BaseServer.START_SERVER:
    134135    case BaseServer.SERVER_STARTED:
    135136        {
     
    157158    case BaseServer.BROWSER_LAUNCH_FAILED:
    158159        {
    159         enter_button.setText(stringToHTML(BaseServer.dictionary.get("ServerControl.EnterLibrary")));
     160        enter_button.setText(stringToHTML(BaseServer.dictionary.get("ServerControl.EnterLibrary")
     161                          + "(URL: " + server.getBrowserURL() + ")"));
    160162        enter_button.setEnabled(true);
    161163        fMenu.setEnabled(true);
     
    201203    public void actionPerformed(ActionEvent ev) {
    202204        switch (server.getServerState()){
     205        case BaseServer.START_SERVER:
     206        {
     207         Thread runInThread = new Thread(new Runnable(){
     208                public void run(){
     209                server.start();
     210                server.launchBrowser();
     211                }
     212            },"start server and launch browser");
     213           
     214            runInThread.start();
     215                   break;     
     216        }
    203217        case BaseServer.SERVER_STARTED: case BaseServer.BROWSER_LAUNCH_FAILED:
    204218        {
Note: See TracChangeset for help on using the changeset viewer.