Magellan Linux

Contents of /trunk/adito/adito-install.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 674 - (show annotations) (download) (as text)
Mon Aug 25 23:20:49 2008 UTC (15 years, 8 months ago) by niro
File MIME type: application/x-sh
File size: 758 byte(s)
-forked for adito

1 #!/bin/bash
2 # $Header: /root/magellan-cvs/src/adito/adito-install.sh,v 1.1 2008-08-25 23:20:49 niro Exp $
3 # adito install wrapper
4
5 ADITO_ROOT=/opt/adito
6 MAINCLASS="com.adito.boot.Bootstrap"
7
8 # setup classpath
9 CLASSPATH="${CLASSPATH}:${ADITO_ROOT}/adito/build/boot"
10 CLASSPATH="${CLASSPATH}:${ADITO_ROOT}/adito/conf"
11
12 [[ ! -d ${ADITO_ROOT}/adito/logs ]] && install -d ${ADITO_ROOT}/adito/logs
13 [[ ! -d ${ADITO_ROOT}/adito/tmp ]] && install -d ${ADITO_ROOT}/adito/tmp
14 touch ${ADITO_ROOT}/adito/logs/adito.log
15
16 # install tools.jar from java-jdk
17 cp ${JAVA_HOME}/lib/tools.jar ${ADITO_ROOT}/adito/lib/tools.jar
18
19 # run install mode
20 cd ${ADITO_ROOT}/adito
21 java -cp ${CLASSPATH} -Djava.library.path=${ADITO_ROOT} ${MAINCLASS} --install --conf=${ADITO_ROOT}/adito/conf