ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 1 | if [ -z $MANAGIX_HOME ] |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 2 | then |
ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 3 | echo "MANAGIX_HOME is not defined" |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 4 | exit 1 |
| 5 | fi |
| 6 | |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 7 | |
ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 8 | for jar in `ls $MANAGIX_HOME/lib/*.jar` |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 9 | do |
ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 10 | if [ -z $MANAGIX_CLASSPATH ] |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 11 | then |
ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 12 | MANAGIX_CLASSPATH=$jar |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 13 | else |
ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 14 | MANAGIX_CLASSPATH=$MANAGIX_CLASSPATH:$jar |
ramangrover29 | 116eb97 | 2013-02-20 20:47:35 +0000 | [diff] [blame] | 15 | fi |
| 16 | done |
| 17 | |
ramangrover29 | 7265aec | 2013-03-16 01:09:54 +0000 | [diff] [blame] | 18 | MANAGIX_CLASSPATH=$MANAGIX_CLASSPATH:$MANAGIX_HOME/conf/log4j.properties |
| 19 | java $JAVA_OPTS -Dlog4j.configuration=file:$MANAGIX_HOME/conf/log4j.properties -cp $MANAGIX_CLASSPATH edu.uci.ics.asterix.installer.driver.InstallerDriver $@ |