Changeset 30568 for main/trunk/gli
- Timestamp:
- 2016-06-10T22:11:15+12:00 (8 years ago)
- Location:
- main/trunk/gli
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/gems.bat
r25678 r30568 44 44 45 45 :checkUserPermissions 46 47 rem In a distributed GS3 setup like in the labs, we don't require the Greenstone directory to be writable. 48 rem If GS3, get the using.user.web property from build.properties and if set to true, we can skip to shiftElevated 49 :: http://ss64.com/nt/syntax-substring.html 50 if "%_VERSION%" == "3" if exist "%GSDL3SRCHOME%\build.properties" for /F "tokens=1,2 delims==" %%G in (%GSDL3SRCHOME%\build.properties) do ( 51 if "%%G" == "using.user.web" if "%%H" == "true" goto :shiftElevated 52 ) 53 46 54 echo. 47 55 echo Checking if the Greenstone collection directory is writable ... -
main/trunk/gli/gli.bat
r25939 r30568 48 48 49 49 :checkUserPermissions 50 51 rem In a distributed GS3 setup like in the labs, we don't require the Greenstone directory to be writable. 52 rem If GS3, get the using.user.web property from build.properties and if set to true, we can skip to shiftElevated 53 :: http://ss64.com/nt/syntax-substring.html 54 if "%_VERSION%" == "3" if exist "%GSDL3SRCHOME%\build.properties" for /F "tokens=1,2 delims==" %%G in (%GSDL3SRCHOME%\build.properties) do ( 55 if "%%G" == "using.user.web" if "%%H" == "true" goto :shiftElevated 56 ) 50 57 echo. 51 58 echo Checking if the Greenstone collection directory is writable ... … … 158 165 :: Run GS3 if version = 3 159 166 :rungs3 167 168 rem In a distributed GS3 set up like in the labs, gsdl3home.isreadonly would be true and 169 rem we need to run the web server in read-only mode. This section of code borrowed from gs3-server.bat. 170 set USE_TMPDIR_FOR_TOMCAT= 171 for /F "tokens=1,2 delims==" %%G in (%GSDL3SRCHOME%\build.properties) do ( 172 if "%%G"=="gsdl3home.isreadonly" set USE_TMPDIR_FOR_TOMCAT=%%H 173 ) 174 if "%USE_TMPDIR_FOR_TOMCAT%" == "true" ( 175 set gsdl3_writablehome=%TMP%\greenstone\web 176 set opt_properties="-Dgsdl3home.isreadonly=true" -Dgsdl3.writablehome="%gsdl3_writablehome%" 177 echo Setting Greenstone3 web home writable area to be: %gsdl3_writablehome% 178 pushd %GSDL3SRCHOME% 179 cmd /c ant.bat %opt_properties% configure-web 180 popd 181 ) 182 160 183 if "%_VERSION%" == "3" "%JAVA_EXECUTABLE%" -cp classes/;GLI.jar;lib/apache.jar;lib/qfslib.jar;lib/rsyntaxtextarea.jar org.greenstone.gatherer.GathererProg -gsdl "%GSDLHOME%" -gsdlos %GSDLOS% -gsdl3 "%GSDL3HOME%" -gsdl3src "%GSDL3SRCHOME%" -perl "%PERLPATH%" %1 %2 %3 %4 %5 %6 %7 %8 %9 161 184 if ERRORLEVEL 2 (
Note:
See TracChangeset
for help on using the changeset viewer.