Changeset 30574 for main/trunk/greenstone3/userweb.cmd
- Timestamp:
- 2016-06-16T19:20:23+12:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/userweb.cmd
r30568 r30574 14 14 set INSTALLDIR=!GSDL3SRCHOME! 15 15 set USERWEB= 16 set IS_TMP_TOMCAT=17 16 18 17 :: Loosely based on http://stackoverflow.com/questions/7708681/how-to-read-from-a-properties-file-using-batch-script … … 20 19 :: http://scripts.dragon-it.co.uk/scripts.nsf/docs/batch-search-replace-substitute!OpenDocument&ExpandSection=3&BaseTarget=East&AutoFramed 21 20 for /F "tokens=1,2 delims==" %%G in (!GSDL3SRCHOME!\build.properties) do ( 22 if "%%G"=="web.home" set USERWEB=%%H& set USERWEB=!USERWEB:/=\! 23 if "%%G"=="gsdl3home.isreadonly" set IS_TMP_TOMCAT=%%H 21 if "%%G"=="web.home" set USERWEB=%%H& set USERWEB=!USERWEB:/=\!& goto found 24 22 ) 23 24 :found 25 25 echo USERWEB: !USERWEB! 26 echo IS_TMP_TOMCAT: !IS_TMP_TOMCAT!27 26 28 27 if "!USERWEB!" == "" echo No userweb directory provided & echo. & goto done
Note:
See TracChangeset
for help on using the changeset viewer.