Changeset 20655 for gsdl


Ignore:
Timestamp:
2009-09-21T14:29:59+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.

Location:
gsdl/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/findjava.sh

    r20650 r20655  
    6868    # Give search4j a hint to find Java depending on the platform
    6969    if [ $GSDLOS = linux ]; then
    70     HINT=`cd $GSDLHOME;pwd`/packages/jre
     70    HINT=`cd "$GSDLHOME";pwd`/packages/jre
    7171    elif [ $GSDLOS = darwin ]; then
    7272    HINT=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
     
    132132    SEARCH4J_EXECUTABLE=search4j   
    133133elif [ -x "$GSDLHOME/bin/$GSDLOS/search4j" ]; then
    134     SEARCH4J_EXECUTABLE=$GSDLHOME/bin/$GSDLOS/search4j
     134    SEARCH4J_EXECUTABLE="$GSDLHOME/bin/$GSDLOS/search4j"
    135135elif [ -x "$GSDL3SRCHOME/bin/$GSDLOS/search4j" ]; then
    136     SEARCH4J_EXECUTABLE=$GSDL3SRCHOME/bin/search4j
     136    SEARCH4J_EXECUTABLE="$GSDL3SRCHOME/bin/search4j"
    137137elif [ -x "../bin/$GSDLOS/search4j" ]; then
    138138    SEARCH4J_EXECUTABLE=../bin/$GSDLOS/search4j
  • gsdl/trunk/gs2-server.bat

    r20635 r20655  
    3232   pushd "%gsdl2path%"
    3333   call setup.bat
    34 ::   echo **** GSDLOS: %GSDLOS% and GSDLHOME: %GSDLHOME%
     34rem   echo **** GSDLOS: %GSDLOS% and GSDLHOME: %GSDLHOME%
    3535   popd
    3636)
     
    116116:: ---- Check Java ----
    117117:chkjava
    118 :: call the script with source, so that we have the variables it sets ($javapath)
     118:: call the script with source, so that we have the variables JAVA_EXECUTABLE and GS_JAVA_HOME it sets
    119119set exit_status=0
    120120:: Need to find Java. If found, JAVA_EXECUTABLE will be set
     
    122122call "%GSDLHOME%\findjava.bat"
    123123if "%JAVA_EXECUTABLE%" == "" echo **** No Java executable found& goto exit
     124set PATH=%GS_JAVA_HOME%\bin;%PATH%
    124125
    125126
Note: See TracChangeset for help on using the changeset viewer.