blob: 66a0cd3b454379d8e1175436068fb08e134d2615 [file] [log] [blame]
Till Westmann7ce7c4b2014-11-10 06:34:23 -08001#!/usr/bin/env bash
2#/*
3# Copyright 2009-2013 by The Regents of the University of California
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# you may obtain a copy of the License from
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#*/
Till Westmannfd733ee2014-07-10 00:57:37 -070016if [ -z $MANAGIX_HOME ]
ramangrover29116eb972013-02-20 20:47:35 +000017 then
Till Westmannfd733ee2014-07-10 00:57:37 -070018 pushd $(dirname $0) >/dev/null
19 cd ..
20 export MANAGIX_HOME=$(pwd)
21 popd >/dev/null
ramangrover29116eb972013-02-20 20:47:35 +000022fi
23
ramangrover297265aec2013-03-16 01:09:54 +000024for jar in `ls $MANAGIX_HOME/lib/*.jar`
ramangrover29116eb972013-02-20 20:47:35 +000025 do
ramangrover297265aec2013-03-16 01:09:54 +000026 if [ -z $MANAGIX_CLASSPATH ]
ramangrover29116eb972013-02-20 20:47:35 +000027 then
ramangrover297265aec2013-03-16 01:09:54 +000028 MANAGIX_CLASSPATH=$jar
ramangrover29116eb972013-02-20 20:47:35 +000029 else
ramangrover297265aec2013-03-16 01:09:54 +000030 MANAGIX_CLASSPATH=$MANAGIX_CLASSPATH:$jar
ramangrover29116eb972013-02-20 20:47:35 +000031 fi
32done
33
ramangrover297265aec2013-03-16 01:09:54 +000034MANAGIX_CLASSPATH=$MANAGIX_CLASSPATH:$MANAGIX_HOME/conf/log4j.properties
35java $JAVA_OPTS -Dlog4j.configuration=file:$MANAGIX_HOME/conf/log4j.properties -cp $MANAGIX_CLASSPATH edu.uci.ics.asterix.installer.driver.InstallerDriver $@