[19253] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | # The default case runs the installer in an X session if it can
|
---|
| 4 | # falling back to text if the Graphics environment is not available
|
---|
| 5 | # This can be changed by uncommenting the if statement and the default
|
---|
| 6 | # can be changed by replacing "text" with "swing" below
|
---|
| 7 | # or passing the required option on the command line
|
---|
| 8 | GUI=$1
|
---|
| 9 | if [ "$GUI" = "" ] ; then
|
---|
| 10 | GUI=default;
|
---|
| 11 | fi
|
---|
| 12 |
|
---|
| 13 | dir=`expr match "$0" '\(.*\)install.sh'`
|
---|
| 14 | # if it we did not call ./ change to the directory we called
|
---|
| 15 | if [ "$dir" != "./" ] ; then
|
---|
| 16 | if [ "$dir" != "" ] ; then
|
---|
| 17 | cd "$dir" ;
|
---|
| 18 | fi
|
---|
| 19 | fi
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 |
|
---|
| 23 | # Installer requires Java
|
---|
| 24 | if [ "$JAVA_HOME" = "" ] ; then
|
---|
| 25 | echo Installer requires Java available from http://java.sun.com
|
---|
| 26 | echo If you have Java installed you may just need to set the variable JAVA_HOME
|
---|
| 27 | exit 1;
|
---|
| 28 | fi
|
---|
| 29 |
|
---|
| 30 | # Installer from command line classpath
|
---|
| 31 | CLASSPATH=../../../../lib/xercesImpl.jar
|
---|
| 32 | CLASSPATH=$CLASSPATH:../../../../lib/xml-apis.jar
|
---|
| 33 | CLASSPATH=$CLASSPATH:../../../../lib/ant-installer.jar
|
---|
| 34 |
|
---|
| 35 | # JGoodies Look And Feel
|
---|
| 36 | CLASSPATH=$CLASSPATH:../../../../lib/jgoodies-edited-1_2_2.jar
|
---|
| 37 | # Image resources
|
---|
| 38 | CLASSPATH=$CLASSPATH:../../../../src
|
---|
| 39 | # Metouia (default) Look And Feel
|
---|
| 40 | # CLASSPATH=$CLASSPATH:./lib/metouia.jar
|
---|
| 41 |
|
---|
| 42 | # minimal ANT classpath requirements
|
---|
| 43 | CLASSPATH=$CLASSPATH:../../../../antlib/ant.jar
|
---|
| 44 | CLASSPATH=$CLASSPATH:../../../../antlib/ant-launcher.jar
|
---|
| 45 | CLASSPATH=$CLASSPATH:cp
|
---|
| 46 |
|
---|
| 47 | ### add other ant jars required here
|
---|
| 48 | #CLASSPATH=$CLASSPATH:./antlib/ant-weblogic.jar:./antlib/ant-javamail.jar
|
---|
| 49 |
|
---|
| 50 | COMMAND=$JAVA_HOME/bin/java
|
---|
| 51 |
|
---|
| 52 | #echo $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $1
|
---|
| 53 |
|
---|
| 54 | $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $GUI .
|
---|