source: trunk/in-the-cloud/run-in-the-cloud.bash@ 1092

Last change on this file since 1092 was 1092, checked in by davidb, 7 years ago

Bash version

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/bash
2
3if [ ! -z $explang ] ; then
4 explang=en
5fi
6
7export PROGNAME=Expeditee
8#export EXPEDITEE_OS=`uname`
9
10# go into the folder where this script lives and run expeditee from there
11thisdir="`dirname \"$0\"`"
12thisdir="`cd \"$thisdir\" && pwd`"
13cd "$thisdir"
14export EXPEDITEE_CLOUD_HOME="$thisdir"
15
16# -------- Run Expeditee --------
17
18# JRE_HOME or JAVA_HOME must be set correctly to run Expeditee
19
20# ---- Check Java ----
21exit_status=0
22# Need to find Java.
23#"$EXPEDITEE_CLOUD_HOME/findjava.sh"
24source ./findjava.sh "$explang" "$PROGNAME"
25exit_status=$?
26if [ "$exit_status" -eq 1 ]; then
27 exit 1;
28fi
29export PATH="$JAVA_HOME/bin:$PATH"
30
31
32# Potentially useful, not currently used
33cygwin_detected=0
34cygpath -h >/dev/null 2>&1
35if [ $? == 0 ] ; then
36 cygwin_detected=1
37fi
38
39custom_vm_args=""
40if [ "$EXPEDITEE_OS" = "darwin" ]; then
41 custom_vm_args="$custom_vm_args -Xdock:name=NG-IKM"
42fi
43
44if [ "x$EXPEDITEE_FILESYSTEM" != "x" ] ; then
45 custon_vm_args="$custom_vm_args -Dexpeditee.home=\"$EXPEDITEE_FILESYSTEM\""
46fi
47
48
49# Use the following if anything extra is needed for java for your environment
50java_props=
51
52cd "$EXPEDITEE_HOME"
53java $java_props $custom_vm_args -classpath releases/Expeditee.jar org.apollo.ApolloSystem $*
54
55
56
57
58
59
Note: See TracBrowser for help on using the repository browser.