source: trunk/in-the-cloud/run-in-the-cloud.bat

Last change on this file was 1071, checked in by davidb, 8 years ago

Set of files to make it easier to launch Expeditee using an in-the-cloud storage system such as Google Drive. First cut works for Windows

  • 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%"
10REM CD /D "%~dp0"
11set EXPEDITEE_CLOUD_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_CLOUD_HOME%\findjava.bat"
24if "%JAVA_EXECUTABLE%" == "" echo **** No Java executable found& goto exit
25set PATH=%EXP_JAVA_HOME%\bin;%PATH%
26
27
28set java_props=
29if not "%EXPEDITEE_FILESYSTEM%" == "" (
30 "%JAVA_EXECUTABLE%" %java_props% "-Dexpeditee.home=%EXPEDITEE_FILESYSTEM%" -jar ..\releases\Expeditee.jar %*
31 goto exit
32)
33
34"%JAVA_EXECUTABLE%" %java_props% -jar ..\releases\Expeditee.jar %*
35
36
37:exit
38popd
39ENDLOCAL
Note: See TracBrowser for help on using the repository browser.