source: other-projects/expeditee-release-kits/scripts/run.bat@ 28721

Last change on this file since 28721 was 28721, checked in by ak19, 10 years ago

Add scripts to find java and run expeditee, make installer copy scripts to installation directory, and chmod them to be executable

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1@echo off
2SETLOCAL enabledelayedexpansion
3
4if "%EXP_LANG%" == "" set EXP_LANG=en
5set PROGNAME=Expeditee
6set EXPEDITEE_OS=windows
7
8:: go into the folder where this script lives and run expeditee from there
9pushd "%CD%"
10CD /D "%~dp0"
11set EXPEDITEE_HOME=%CD%
12
13:: -------- Run Expeditee --------
14
15:: JRE_HOME or JAVA_HOME must be set correctly to run Expeditee
16
17set java_min_version=1.8.0_00
18bin\windows\search4j -m %java_min_version% > nul
19echo.
20if not %ERRORLEVEL% equ 0 goto :exit
21
22:: ---- Check Java ----
23:chkjava
24:: call the findjava script so that we have the variables JAVA_EXECUTABLE and EXP_JAVA_HOME that it sets
25set exit_status=0
26:: Need to find Java. If found, JAVA_EXECUTABLE will be set
27:: call findjava.bat %EXP_LANG% %PROGNAME%
28call "%EXPEDITEE_HOME%\findjava.bat"
29if "%JAVA_EXECUTABLE%" == "" echo **** No Java executable found& goto exit
30set PATH=%EXP_JAVA_HOME%\bin;%PATH%
31
32::echo port: %port%& echo conf: %conf%& echo.& echo.
33:: Do not remove the quotes around %* !!! It's what helps Server2.jar deal with spaces in configfile path
34"%JAVA_EXECUTABLE%" -jar Expeditee.jar %*
35
36
37:exit
38popd
39ENDLOCAL
Note: See TracBrowser for help on using the repository browser.