root/other-projects/expeditee-release-kits/scripts/run.bat @ 29389

Revision 28740, 1.0 KB (checked in by ak19, 6 years ago)

Expeditee team (jts21). Add shared/windows folder with self-extracting Java 8 JRE, moved windows_wrapper.cpp to shared/windows/wrapper/wrapper.cpp, fixed run/findjava scripts

  • Property svn:executable set to *
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
17:: ---- Check Java ----
18:chkjava
19:: call the findjava script so that we have the variables JAVA_EXECUTABLE and EXP_JAVA_HOME that it sets
20set exit_status=0
21:: Need to find Java. If found, JAVA_EXECUTABLE will be set
22:: call findjava.bat %EXP_LANG% %PROGNAME%
23call "%EXPEDITEE_HOME%\bin\findjava.bat"
24if "%JAVA_EXECUTABLE%" == "" echo **** No Java executable found& goto exit
25set PATH=%EXP_JAVA_HOME%\bin;%PATH%
26
27::echo port: %port%& echo conf: %conf%& echo.& echo.
28:: Do not remove the quotes around %* !!! It's what helps Server2.jar deal with spaces in configfile path
29"%JAVA_EXECUTABLE%" -jar Expeditee.jar %*
30
31
32:exit
33popd
34ENDLOCAL
Note: See TracBrowser for help on using the browser.