Till Westmann | fd733ee | 2014-07-10 00:57:37 -0700 | [diff] [blame] | 1 | if [ -z $MANAGIX_HOME ] |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 2 | then |
Till Westmann | fd733ee | 2014-07-10 00:57:37 -0700 | [diff] [blame] | 3 | pushd $(dirname $0) >/dev/null |
| 4 | cd .. |
| 5 | export MANAGIX_HOME=$(pwd) |
| 6 | popd >/dev/null |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 7 | fi |
| 8 | |
ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 9 | for jar in `ls $MANAGIX_HOME/lib/*.jar` |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 10 | do |
ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 11 | if [ -z $MANAGIX_CLASSPATH ] |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 12 | then |
ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 13 | MANAGIX_CLASSPATH=$jar |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 14 | else |
ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 15 | MANAGIX_CLASSPATH=$MANAGIX_CLASSPATH:$jar |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 16 | fi |
| 17 | done |
| 18 | |
ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 19 | MANAGIX_CLASSPATH=$MANAGIX_CLASSPATH:$MANAGIX_HOME/conf/log4j.properties |
| 20 | java $JAVA_OPTS -Dlog4j.configuration=file:$MANAGIX_HOME/conf/log4j.properties -cp $MANAGIX_CLASSPATH edu.uci.ics.asterix.installer.driver.InstallerDriver $@ |