Changeset 20656


Ignore:
Timestamp:
2009-09-21T14:32:05+12:00 (15 years ago)
Author:
ak19
Message:

Updated in sync with the changes Katherine just made to gs2-server.sh and findjava.sh (JAVA_HOME\bin added to the PATH) before launching the webserver so that apache can pass it on to the lucene indexers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/findjava.bat

    r20636 r20656  
    11@echo off
    22
    3 :: Environment Variables passed in: _VERSION, GLILANG and
    4 :: possibly also GSDLHOME and/or GSDL3SRCHOME.
    5 :: As a result of executing this script, the JAVA_EXECUTABLE variable
    6 :: will be set, but only if Perl was found.
     3:: Environment Variables passed in: _VERSION, GLILANG and possibly also
     4:: GSDLHOME and/or GSDL3SRCHOME.
     5:: As a result of executing this script, the JAVA_EXECUTABLE and GS_JAVA_HOME
     6:: environment variables will be set, but only if Perl was found.
    77
    88:findJava
     
    4040    echo.
    4141
    42 :: found java, JAVA_EXECUTABLE env var set, can exit this script
     42    :: we know that works, so we can set the local javahome (for Greenstone) as well
     43    "%SEARCH4J_EXECUTABLE%" -m "%MIN_VERSION%" -p "%HINT%" | winutil\setvar.exe GS_JAVA_HOME > %TMP%\set_java_home.bat
     44    call "%TMP%\set_java_home.bat"
     45    del "%TMP%\set_java_home.bat"
     46
     47:: found java, JAVA_EXECUTABLE and GS_JAVA_HOME env vars set, can exit this script
    4348    goto exit
    4449
     
    5863    :: Try to use this version
    5964    set JAVA_EXECUTABLE=%JAVA_HOME%\bin\java
     65    set GS_JAVA_HOME=%JAVA_HOME%
    6066    goto exit
    6167
Note: See TracChangeset for help on using the changeset viewer.