Ignore:
Timestamp:
2009-09-02T13:15:07+12:00 (15 years ago)
Author:
ak19
Message:

When gs2-server.bat is called with the glisite.cfg configfile, it means it's launched through GLI. In that case an extra DOS prompt would have been launched and would need to be closed upon exit. So gs2-server.bat now makes a call to the batch cmd exit when it's launched with glisite.cfg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/gs2-server.bat

    r20436 r20478  
    120120:: Need to find Java. If found, JAVA_EXECUTABLE will be set
    121121:: call findjava.bat %serverlang% %PROGNAME%
    122 call findjava.bat
     122call "%GSDLHOME%\findjava.bat"
    123123if "%JAVA_EXECUTABLE%" == "" echo **** No Java executable found& goto exit
    124124
     
    127127echo.
    128128"%JAVA_EXECUTABLE%" org.greenstone.server.Server2 "%GSDLHOME%" "%serverlang%" %*
     129::echo ******* Second argument to gs2-server.bat is: %2
     130:: The 1st argument to gs2-server.bat (if any) would be --config, the 2nd is the config
     131:: filename if it is glisite.cfg, then this script was launched through GLI and would
     132:: have opened a DOS console. Need to exit from this script then to close the console.
     133if "%2" == "%GSDLHOME%\glisite.cfg" goto quitcmd
    129134goto exit
    130135
     136:: Exit the batch script (close the console)
     137:quitcmd
     138popd
     139ENDLOCAL
     140exit 0
     141
     142:: Just end the script without closing the console
    131143:exit
    132144popd
Note: See TracChangeset for help on using the changeset viewer.