Last change
on this file since 28728 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
|
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 | set java_min_version=1.8.0_00
|
---|
| 18 | bin\windows\search4j -m %java_min_version% > nul
|
---|
| 19 | echo.
|
---|
| 20 | if 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
|
---|
| 25 | set exit_status=0
|
---|
| 26 | :: Need to find Java. If found, JAVA_EXECUTABLE will be set
|
---|
| 27 | :: call findjava.bat %EXP_LANG% %PROGNAME%
|
---|
| 28 | call "%EXPEDITEE_HOME%\findjava.bat"
|
---|
| 29 | if "%JAVA_EXECUTABLE%" == "" echo **** No Java executable found& goto exit
|
---|
| 30 | set 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
|
---|
| 38 | popd
|
---|
| 39 | ENDLOCAL
|
---|
Note:
See
TracBrowser
for help on using the repository browser.