Changeset 24829 for main/trunk/gli
- Timestamp:
- 2011-11-30T17:48:15+13:00 (12 years ago)
- Location:
- main/trunk/gli
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/client-gli.bat
r19391 r24829 1 1 @echo off 2 setlocal enabledelayedexpansion 3 2 4 pushd "%CD%" 3 5 CD /D "%~dp0" … … 94 96 :: the client side. If we have Perl, pass in GSDLHOME for the -gsdl option and the PERLPATH. 95 97 if "%PERLPATH%" == "" goto nogsdl 96 echo Perl and GSDLHOME ( %GSDLHOME%) detected. Downloading is enabled.98 echo Perl and GSDLHOME (!GSDLHOME!) detected. Downloading is enabled. 97 99 echo. 98 100 "%JAVA_EXECUTABLE%" -Xmx128M -cp classes/;GLI.jar;lib/apache.jar;lib/qfslib.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone -gsdl "%GSDLHOME%" -perl "%PERLPATH%" %1 %2 %3 %4 %5 %6 %7 %8 %9 … … 124 126 set PROGABBR= 125 127 popd 128 endlocal -
main/trunk/gli/findjava.bat
r20655 r24829 1 1 @echo off 2 setlocal enabledelayedexpansion 2 3 3 4 :: Environment Variables passed in: _VERSION, GLILANG and possibly also … … 21 22 :: else we look for a compiled version of search4j in a GS installation 22 23 if "%_VERSION%" == "2" ( 23 set SEARCH4J_EXECUTABLE= %GSDLHOME%\bin\windows\search4j.exe24 set HINT= %GSDLHOME%\packages\jre24 set SEARCH4J_EXECUTABLE=!GSDLHOME!\bin\windows\search4j.exe 25 set HINT=!GSDLHOME!\packages\jre 25 26 ) 26 27 set SEARCH4J_EXECUTABLE= %GSDL3SRCHOME%\bin\search4j.exe28 set HINT= %GSDL3SRCHOME%\packages\jre27 if "%_VERSION%" == "3" ( 28 set SEARCH4J_EXECUTABLE=!GSDL3SRCHOME!\bin\search4j.exe 29 set HINT=!GSDL3SRCHOME!\packages\jre 29 30 ) 30 31 if not exist "%SEARCH4J_EXECUTABLE%" goto tryJava 31 32 32 :setJexec 33 :setJexec 33 34 "%SEARCH4J_EXECUTABLE%" -e -m "%MIN_VERSION%" -p "%HINT%" | winutil\setvar.exe JAVA_EXECUTABLE > %TMP%\set_java_executable.bat 34 35 call "%TMP%\set_java_executable.bat" … … 56 57 echo WARNING: 57 58 echo Java Runtime not bundled with this Greenstone installation. 58 echo Using JAVA_HOME: %JAVA_HOME%59 echo Using JAVA_HOME: !JAVA_HOME! 59 60 echo ^(NOTE: this needs to be %DISPLAY_MIN_VERSION% or higher.^) 60 61 echo *************************************************************************** … … 97 98 set MIN_VERSION= 98 99 set DISPLAY_MIN_VERSION= 100 101 endlocal & set JAVA_EXECUTABLE=%JAVA_EXECUTABLE%& set GS_JAVA_HOME=%GS_JAVA_HOME% -
main/trunk/gli/gli.bat
r23650 r24829 1 1 @echo off 2 setlocal enabledelayedexpansion 3 2 4 color 0A 3 5 set startdir=%CD% … … 48 50 echo. 49 51 echo Checking if the Greenstone collection directory is writable ... 50 (echo This is a temporary file. It is safe to delete it. > " %GSDLHOME%\collect\testing.tmp" ) 2>nul52 (echo This is a temporary file. It is safe to delete it. > "!GSDLHOME!\collect\testing.tmp" ) 2>nul 51 53 if exist "%GSDLHOME%\collect\testing.tmp" goto deleteTempFile 52 54 if "%1" == "Elevated" goto printWarning 53 55 echo ... FAILED 54 echo The %PROGNAME% cannot write to the collection directory ( %GSDLHOME%\collect)56 echo The %PROGNAME% cannot write to the collection directory (!GSDLHOME!\collect) 55 57 echo Requesting elevated status to become admin user to continue. 56 58 "%GSDLHOME%\bin\windows\gstart.exe" %0 Elevated %1 %2 %3 %4 %5 %6 %7 %8 %9 … … 59 61 :printWarning 60 62 echo ... FAILED 61 echo The %PROGNAME% cannot write to the log directory ( %GSDLHOME%\collect).63 echo The %PROGNAME% cannot write to the log directory (!GSDLHOME!\collect). 62 64 echo Attempting to continue without permissions. 63 65 goto shiftElevated … … 114 116 if not "%GSDL3SRCHOME%" == "" ( 115 117 echo GSDL3SRCHOME: 116 echo %GSDL3SRCHOME%118 echo !GSDL3SRCHOME! 117 119 echo. 118 120 ) … … 120 122 if not "%GSDL3HOME%" == "" ( 121 123 echo GSDL3HOME: 122 echo %GSDL3HOME%124 echo !GSDL3HOME! 123 125 echo. 124 126 ) … … 126 128 if not "%GSDLHOME%" == "" ( 127 129 echo GSDLHOME: 128 echo %GSDLHOME%130 echo !GSDLHOME! 129 131 echo. 130 132 ) … … 166 168 :localLib 167 169 if exist "%GSDLHOME%\server.exe" ( 168 set locallib= %GSDLHOME%\server.exe170 set locallib=!GSDLHOME!\server.exe 169 171 ) else ( 170 set locallib= %GSDLHOME%\gs2-web-server.bat172 set locallib=!GSDLHOME!\gs2-web-server.bat 171 173 ) 172 174 … … 211 213 cd "%startdir%" 212 214 set startdir= 215 216 endlocal -
main/trunk/gli/makejar.bat
r24782 r24829 1 1 echo off 2 setlocal enabledelayedexpansion 3 2 4 pushd "%CD%" 3 5 CD /D "%~dp0" … … 115 117 116 118 cd jar 117 " %JARPATH%\jar" xf ..\lib\apache.jar com org118 " %JARPATH%\jar" xf ..\lib\qfslib.jar de119 "!JARPATH!\jar" xf ..\lib\apache.jar com org 120 "!JARPATH!\jar" xf ..\lib\qfslib.jar de 119 121 120 122 cd .. … … 152 154 153 155 if not exist appletstore ( 154 " %JARPATH%\keytool" -genkey -alias privateKey -keystore appletstore -storepass greenstone156 "!JARPATH!\keytool" -genkey -alias privateKey -keystore appletstore -storepass greenstone 155 157 ) 156 158 … … 158 160 if exist appletpasswd ( 159 161 echo Using jarsigner to make signed jar file ... 160 " %JARPATH%\jarsigner" -keystore appletstore -signedjar SignedGatherer.jar GLI.jar privateKey < appletpasswd >NUL 2>NUL162 "!JARPATH!\jarsigner" -keystore appletstore -signedjar SignedGatherer.jar GLI.jar privateKey < appletpasswd >NUL 2>NUL 161 163 echo ... done. 162 164 ) ELSE ( 163 " %JARPATH%\jarsigner" -keystore appletstore -signedjar SignedGatherer.jar GLI.jar privateKey165 "!JARPATH!\jarsigner" -keystore appletstore -signedjar SignedGatherer.jar GLI.jar privateKey 164 166 ) 165 167 echo Installing SignedGatherer in ..\bin\java … … 169 171 170 172 popd 173 endlocal
Note:
See TracChangeset
for help on using the changeset viewer.