Last change
on this file since 28740 was 28740, checked in by ak19, 10 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
*
|
File size:
1.0 KB
|
Rev | Line | |
---|
[28721] | 1 | @echo off
|
---|
| 2 | SETLOCAL enabledelayedexpansion
|
---|
| 3 |
|
---|
| 4 | if "%EXP_LANG%" == "" set EXP_LANG=en
|
---|
| 5 | set PROGNAME=Expeditee
|
---|
| 6 | set EXPEDITEE_OS=windows
|
---|
| 7 |
|
---|
| 8 | :: go into the folder where this script lives and run expeditee from there
|
---|
| 9 | pushd "%CD%"
|
---|
| 10 | CD /D "%~dp0"
|
---|
| 11 | set 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
|
---|
| 20 | set exit_status=0
|
---|
| 21 | :: Need to find Java. If found, JAVA_EXECUTABLE will be set
|
---|
| 22 | :: call findjava.bat %EXP_LANG% %PROGNAME%
|
---|
[28740] | 23 | call "%EXPEDITEE_HOME%\bin\findjava.bat"
|
---|
[28721] | 24 | if "%JAVA_EXECUTABLE%" == "" echo **** No Java executable found& goto exit
|
---|
| 25 | set 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
|
---|
| 33 | popd
|
---|
| 34 | ENDLOCAL
|
---|
Note:
See
TracBrowser
for help on using the repository browser.