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