Changeset 30568 for main/trunk/greenstone3/gs3-server.bat
- Timestamp:
- 2016-06-10T22:11:15+12:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/gs3-server.bat
r27903 r30568 16 16 if "%GSDL3SRCHOME%" == "" call "%GSDL3PATH%\gs3-setup.bat" SetEnv > nul 17 17 18 set USE_TMPDIR_FOR_TOMCAT= 19 for /F "tokens=1,2 delims==" %%G in (%GSDL3SRCHOME%\build.properties) do ( 20 if "%%G"=="gsdl3home.isreadonly" set USE_TMPDIR_FOR_TOMCAT=%%H 21 ) 18 22 23 :: If the gsdl3.home readonly property is not already set to true, then 19 24 :: See if Greenstone3 web folder is writable 25 if "%USE_TMPDIR_FOR_TOMCAT%" == "false" ( 20 26 echo. 21 27 echo Checking if the Greenstone3 web directory is writable ... 22 28 (echo This is a temporary file. It is safe to delete it. > "%GSDL3HOME%\testing.tmp" ) 2>nul 23 29 if exist "%GSDL3HOME%\testing.tmp" goto isWritable 30 ) 24 31 25 32 :: Is read-only 26 33 set gsdl3_writablehome=%TMP%\greenstone\web 27 34 set opt_properties="-Dgsdl3home.isreadonly=true" -Dgsdl3.writablehome="%gsdl3_writablehome%" 28 echo ... no.35 if "%USE_TMPDIR_FOR_TOMCAT%" == "false" echo ... no. 29 36 echo Setting Greenstone3 web home writable area to be: %gsdl3_writablehome% 30 37
Note:
See TracChangeset
for help on using the changeset viewer.