Changeset 29749
- Timestamp:
- 2015-02-18T16:35:18+13:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/solr/trunk/src/gs3-setup.bat
r26510 r29749 4 4 5 5 set extdesc=the Solr Extension 6 if "%GSDL3SRCHOME%" == "" echo Run the toplevel gs3-setup.bat before calling this script& goto End 6 7 8 rem IF USING TOMCAT SERVER FOR SOLR 9 :: If using tomcat, read the tomcat host and port from the toplevel GS3 build.properties 10 :: http://en.kioskea.net/faq/1757-how-to-read-a-file-line-by-line 11 :: The following reads build.properties line by line, tokenizing it around the = sign, then 12 :: sets the SOLR_PORT and SOLR_HOST to the values of tomcat.port and tomcat.host properties 13 14 set SOLR_PORT=8983 15 set SOLR_HOST=localhost 16 :: Loosely based on 17 :: http://stackoverflow.com/questions/7708681/how-to-read-from-a-properties-file-using-batch-script 18 FOR /F "tokens=1,2 delims==" %%G IN (%GSDL3SRCHOME%\build.properties) DO ( 19 if "%%G"=="tomcat.server" set SOLR_HOST=%%H 20 if "%%G"=="tomcat.port" set SOLR_PORT=%%H 21 ) 22 echo Tomcat host: %SOLR_HOST% 23 echo Tomcat port: %SOLR_PORT% 24 25 26 rem IF USING JETTY SERVER FOR SOLR 7 27 :: The port Jetty runs on: 8 28 set SOLR_JETTY_PORT=8983 … … 63 83 :: variables with brackets in them, such as "Program Files (x86)" 64 84 65 echo ++Solr/Jetty server will run on port %SOLR_JETTY_PORT% (+ port %JETTY_STOP_PORT% for shutdown command)" 85 ::echo ++Solr/Jetty server will run on port %SOLR_JETTY_PORT% (+ port %JETTY_STOP_PORT% for shutdown command) 86 echo ++Solr will run off the tomcat server on port %SOLR_PORT% 66 87 echo --These port values can be changed by editing: 67 88 echo -- %0
Note:
See TracChangeset
for help on using the changeset viewer.