Changeset 35314


Ignore:
Timestamp:
2021-08-20T23:08:32+12:00 (3 years ago)
Author:
davidb
Message:

Some refinement of the (echo) messages generated so the information presented in general doesn't sound quite so scary, when things are in fact still on track

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/gs3-setup.bat

    r32432 r35314  
    3636:foundall
    3737endlocal& set SOLR_HOST=%SOLR_HOST%& set SOLR_PORT=%SOLR_PORT%
    38 echo Tomcat host: %SOLR_HOST%
    39 echo Tomcat port: %SOLR_PORT%
     38echo   - Solr API accessed internally via: http://%SOLR_HOST%:%SOLR_PORT%/solr/
     39rem echo Tomcat host: %SOLR_HOST%
     40rem echo Tomcat port: %SOLR_PORT%
    4041
    4142
    42 rem IF USING JETTY SERVER FOR SOLR
    43 :: The port Jetty runs on:
    44 set SOLR_JETTY_PORT=8983
     43rem rem IF USING JETTY SERVER FOR SOLR
     44rem :: The port Jetty runs on:
     45rem set SOLR_JETTY_PORT=8983
    4546
    46 :: The port Jetty listens on for a "stop" command
    47 set JETTY_STOP_PORT=8079
     47rem :: The port Jetty listens on for a "stop" command
     48rem set JETTY_STOP_PORT=8079
    4849
    4950if "%OS%" == "Windows_NT" goto WinNT
     
    99100:: variables with brackets in them, such as "Program Files (x86)"
    100101
    101 ::echo ++Solr/Jetty server will run on port %SOLR_JETTY_PORT% (+ port %JETTY_STOP_PORT% for shutdown command)
    102 echo ++Solr will run off the tomcat server on port %SOLR_PORT%
    103 echo --This port value can be changed by editing tomcat.port in build.properties
    104 ::echo --  %0
     102rem ::echo ++Solr/Jetty server will run on port %SOLR_JETTY_PORT% (+ port %JETTY_STOP_PORT% for shutdown command)
     103rem echo ++Solr will run off the tomcat server on port %SOLR_PORT%
     104rem echo --This port value can be changed by editing tomcat.port in build.properties
     105rem ::echo --  %0
    105106
    106107
  • main/trunk/greenstone3/gs3-setup.bat

    r34111 r35314  
    180180if "%bitness%" == "PE32+" (
    181181    set bitness=64
    182     echo The installed Greenstone is 64 bit
     182rem echo The installed Greenstone is 64 bit
    183183) else (
    184184    if "%bitness%" == "PE32" (
    185185        set bitness=32
    186         echo The installed Greenstone is 32 bit
     186rem     echo The installed Greenstone is 32 bit
    187187    ) else (
    188         echo WARNING: Greenstone installation is of unknown bitness. "%bitness%" is neither 32 nor 64 bit
     188        echo WARNING: Greenstone installation is of unknown bitness. "%bitness%" is neither '32-bit' nor '64-bit'
    189189        set bitness=UNKNOWN
    190190    )
    191191)
    192192
     193echo JNI bitness test: %bitness%
     194     
    193195:: 2. What bitness are any JAVA_HOME else JRE_HOME found by search4j?
    194196:: If you run the non-existent program "pinky" from batch or the DOS console, the exit value is 9009
  • main/trunk/greenstone3/gs3-setup.sh

    r35311 r35314  
    239239  elif [ ! -f "$TESTFILE" ]; then
    240240      # the file we want to test the bitness of, to determine GS3's bitness by, doesn't exist yet
    241       echo "    $TESTFILE is not found, unable to determine bitness of this Greenstone3"
     241#      echo "    $TESTFILE is not found, unable to determine bitness of this Greenstone3"
     242      echo "  - No JNI files detected.  Skipping Java bitness test"
    242243      bitness=-1
    243244  else
     
    245246      if [[ $bitness = *"64-bit"* ]]; then
    246247      bitness=64
    247       echo "The installed Greenstone is $bitness bit"
     248#     echo "The installed Greenstone is $bitness bit"
    248249      elif [[ $bitness = *"32-bit"* ]]; then
    249250      bitness=32
    250       echo "The installed Greenstone is $bitness bit"
     251#     echo "The installed Greenstone is $bitness bit"
    251252      else
    252253      bitness=-1
    253       echo "WARNING: Greenstone installation is of unknown bitness. \"$bitness\" is neither 32 nor 64 bit"
    254       fi
    255   fi
    256  echo bitness = $bitness
     254      echo "WARNING: Greenstone installation is of unknown bitness. \"$bitness\" is neither '32-bit' nor '64-bit'"
     255      fi
     256      echo "JNI bitness test: $bitness"
     257  fi
    257258
    258259  # If search4j is present, use it to locate a java.
     
    262263  # we'll print a warning about this bitness mismatch at the end
    263264
     265  echo ""
     266  echo "Checking for Java"
     267 
    264268  javaset=false
    265269  if [ -x bin/search4j ] ; then
     
    323327      #echo "*** Could not find an appropriate JDK or JRE java"
    324328      #echo "*** Attempting to use JAVA_HOME else JRE_HOME in the environment"
    325       echo "Checking for Java explicitly set through environment variables"
     329      echo "  - search4j' not detected.  Checking for Java explicitly set through environment variables"
    326330      if [ "$JAVA_HOME" != "" ] && [ "`which java`" = "$JAVA_HOME/bin/java" ]; then
    327331      echo "  - Using Java at $JAVA_HOME"
    328       echo "  - Detected Java version: `$JAVA_HOME/bin/java -version 2>&1 | head -n 1`"
    329       echo "  - Note that Greenstone requires Java 1.5 or greater"
    330 #     echo "  - WARNING: Greenstone has not checked the version number of this java installation"
    331 #     echo "             The source distribution of Greenstone3 requires java 1.5 or greater"
    332 #     echo "             (SVN users may still use java 1.4)"
     332      if [ "$DEBUG" = "true" ] ; then
     333          echo "  - Detected Java version: `$JAVA_HOME/bin/java -version 2>&1 | head -n 1`"
     334          echo "  - Note that Greenstone requires Java 1.5 or greater"
     335#         echo "  - WARNING: Greenstone has not checked the version number of this java installation"
     336#             echo "             The source distribution of Greenstone3 requires java 1.5 or greater"
     337          #       echo "             (SVN users may still use java 1.4)"
     338      fi
    333339      elif [ "$JRE_HOME" != "" ] && [ "`which java`" = "$JRE_HOME/bin/java" ]; then
    334340      echo "  - Using java at $JRE_HOME"
    335       echo "  - Detected Java version: `$JAVA_HOME/bin/java -version 2>&1 | head -n 1`"
    336       echo "  - Note that Greenstone requires Java 1.5 or greater"   
    337 #     echo "  - WARNING: Greenstone has not checked the version number of this java installation"
    338 #     echo "             The source distribution of Greenstone3 requires java 1.5 or greater"
    339 #     echo "             (SVN users may still use java 1.4)"
    340      
     341      if [ "$DEBUG" = "true" ] ; then
     342          echo "  - Detected Java version: `$JAVA_HOME/bin/java -version 2>&1 | head -n 1`"
     343          echo "  - Note that Greenstone requires Java 1.5 or greater"   
     344#         echo "  - WARNING: Greenstone has not checked the version number of this java installation"
     345#         echo "             The source distribution of Greenstone3 requires java 1.5 or greater"
     346#         echo "             (SVN users may still use java 1.4)"
     347      fi
    341348      #failing all that, print a warning
    342349      else
    343           #no suitable java exists
    344       echo "  - ERROR: Failed to locate java"
    345       echo "           Please set JAVA_HOME or JRE_HOME to point to an appropriate java"
    346       echo "           And add JAVA_HOME/bin or JRE_HOME/bin to your PATH"
    347       return
     350      echo "  - Did not detect 'java' via JAVA_HOME or JRE_HOME"
     351      echo "Testing for 'java' on PATH"
     352      command -v java
     353      if [ $? != 0 ] ; then
     354              #no suitable java exists
     355          echo "  - Error: Failed to locate 'java'"
     356          echo "           Please set JAVA_HOME or JRE_HOME to point to an appropriate java"
     357          echo "           And add JAVA_HOME/bin or JRE_HOME/bin to your PATH"
     358          return
     359      fi
    348360      fi
    349361    fi
     
    522534setGS3ENV
    523535
    524 echo "done"
    525 
    526536if test -e gs2build/setup.bash ; then
    527537  echo ""
     
    586596fi
    587597
     598echo "done"
     599
Note: See TracChangeset for help on using the changeset viewer.