Changeset 35314
- Timestamp:
- 2021-08-20T23:08:32+12:00 (3 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/solr/trunk/src/gs3-setup.bat
r32432 r35314 36 36 :foundall 37 37 endlocal& set SOLR_HOST=%SOLR_HOST%& set SOLR_PORT=%SOLR_PORT% 38 echo Tomcat host: %SOLR_HOST% 39 echo Tomcat port: %SOLR_PORT% 38 echo - Solr API accessed internally via: http://%SOLR_HOST%:%SOLR_PORT%/solr/ 39 rem echo Tomcat host: %SOLR_HOST% 40 rem echo Tomcat port: %SOLR_PORT% 40 41 41 42 42 rem IF USING JETTY SERVER FOR SOLR43 :: The port Jetty runs on:44 set SOLR_JETTY_PORT=898343 rem rem IF USING JETTY SERVER FOR SOLR 44 rem :: The port Jetty runs on: 45 rem set SOLR_JETTY_PORT=8983 45 46 46 :: The port Jetty listens on for a "stop" command47 set JETTY_STOP_PORT=807947 rem :: The port Jetty listens on for a "stop" command 48 rem set JETTY_STOP_PORT=8079 48 49 49 50 if "%OS%" == "Windows_NT" goto WinNT … … 99 100 :: variables with brackets in them, such as "Program Files (x86)" 100 101 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.properties104 ::echo -- %0102 rem ::echo ++Solr/Jetty server will run on port %SOLR_JETTY_PORT% (+ port %JETTY_STOP_PORT% for shutdown command) 103 rem echo ++Solr will run off the tomcat server on port %SOLR_PORT% 104 rem echo --This port value can be changed by editing tomcat.port in build.properties 105 rem ::echo -- %0 105 106 106 107 -
main/trunk/greenstone3/gs3-setup.bat
r34111 r35314 180 180 if "%bitness%" == "PE32+" ( 181 181 set bitness=64 182 echo The installed Greenstone is 64 bit182 rem echo The installed Greenstone is 64 bit 183 183 ) else ( 184 184 if "%bitness%" == "PE32" ( 185 185 set bitness=32 186 echo The installed Greenstone is 32 bit186 rem echo The installed Greenstone is 32 bit 187 187 ) else ( 188 echo WARNING: Greenstone installation is of unknown bitness. "%bitness%" is neither 32 nor 64 bit188 echo WARNING: Greenstone installation is of unknown bitness. "%bitness%" is neither '32-bit' nor '64-bit' 189 189 set bitness=UNKNOWN 190 190 ) 191 191 ) 192 192 193 echo JNI bitness test: %bitness% 194 193 195 :: 2. What bitness are any JAVA_HOME else JRE_HOME found by search4j? 194 196 :: 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 239 239 elif [ ! -f "$TESTFILE" ]; then 240 240 # 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" 242 243 bitness=-1 243 244 else … … 245 246 if [[ $bitness = *"64-bit"* ]]; then 246 247 bitness=64 247 echo "The installed Greenstone is $bitness bit"248 # echo "The installed Greenstone is $bitness bit" 248 249 elif [[ $bitness = *"32-bit"* ]]; then 249 250 bitness=32 250 echo "The installed Greenstone is $bitness bit"251 # echo "The installed Greenstone is $bitness bit" 251 252 else 252 253 bitness=-1 253 echo "WARNING: Greenstone installation is of unknown bitness. \"$bitness\" is neither 32 nor 64 bit"254 fi 255 fi256 echo bitness = $bitness254 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 257 258 258 259 # If search4j is present, use it to locate a java. … … 262 263 # we'll print a warning about this bitness mismatch at the end 263 264 265 echo "" 266 echo "Checking for Java" 267 264 268 javaset=false 265 269 if [ -x bin/search4j ] ; then … … 323 327 #echo "*** Could not find an appropriate JDK or JRE java" 324 328 #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" 326 330 if [ "$JAVA_HOME" != "" ] && [ "`which java`" = "$JAVA_HOME/bin/java" ]; then 327 331 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 333 339 elif [ "$JRE_HOME" != "" ] && [ "`which java`" = "$JRE_HOME/bin/java" ]; then 334 340 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 341 348 #failing all that, print a warning 342 349 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 348 360 fi 349 361 fi … … 522 534 setGS3ENV 523 535 524 echo "done"525 526 536 if test -e gs2build/setup.bash ; then 527 537 echo "" … … 586 596 fi 587 597 598 echo "done" 599
Note:
See TracChangeset
for help on using the changeset viewer.