source: release-kits/lirk3/bin/ant-installer/demo/install.sh@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 967 bytes
Line 
1#!/bin/sh
2
3# find the command called's root e.g. ./build/
4dir=`expr match "$0" '\(.*\)install.sh'`
5# if it we did not call ./ change to the directory we called
6if [ "$dir" != "./" ] ; then
7 if [ "$dir" != "" ] ; then
8 echo changing to $dir
9 cd "$dir" ;
10 fi
11fi
12
13
14
15if [ "$JAVA_HOME" = "" ] ; then
16 echo set JAVA_HOME;
17 exit 1;
18fi
19
20AI_LIB=../lib
21ANT_LIB=../antlib
22CLASSPATH=${AI_LIB}/xercesImpl.jar:${AI_LIB}/xml-apis.jar:${AI_LIB}/ant-installer.jar
23CLASSPATH=$CLASSPATH:${AI_LIB}/jgoodies-edited-1_2_2.jar
24CLASSPATH=$CLASSPATH:${ANT_LIB}/ant.jar:${ANT_LIB}/ant-launcher.jar
25CLASSPATH=$CLASSPATH:./installclasspath
26
27
28### add other ant jars required here and add them to the install package
29#CLASSPATH=$CLASSPATH:./installlib/ant-weblogic.jar:./installlib/ant-javamail.jar
30
31COMMAND=$JAVA_HOME/bin/java
32INTERFACE=default
33if [ "$1" != "" ] ; then
34 INTERFACE=$1;
35fi
36
37$COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $INTERFACE .
Note: See TracBrowser for help on using the repository browser.