Rev | Line | |
---|
[14982] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | # This script checks the configuration
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | dir=`expr match "$0" '\(.*\)checkConfig.sh'`
|
---|
| 8 | # if it we did not call ./ change to the directory we called
|
---|
| 9 | if [ "$dir" != "./" ] ; then
|
---|
| 10 | if [ "$dir" != "" ] ; then
|
---|
| 11 | cd "$dir" ;
|
---|
| 12 | fi
|
---|
| 13 | fi
|
---|
| 14 | # Installer requires Java
|
---|
| 15 | if [ "$JAVA_HOME" = "" ] ; then
|
---|
| 16 | echo Installer requires Java available from http://java.sun.com
|
---|
| 17 | echo If you have Java installed you may just need to set the variable JAVA_HOME
|
---|
| 18 | exit 1;
|
---|
| 19 | fi
|
---|
| 20 |
|
---|
| 21 | # Installer from command line classpath
|
---|
| 22 | cd installer
|
---|
| 23 | CLASSPATH=../../../../lib/xercesImpl.jar
|
---|
| 24 | CLASSPATH=$CLASSPATH:../../../../lib/xml-apis.jar
|
---|
| 25 | CLASSPATH=$CLASSPATH:../../../../lib/ant-installer.jar
|
---|
| 26 | CLASSPATH=$CLASSPATH:../../../../antlib/ant.jar
|
---|
| 27 |
|
---|
| 28 | COMMAND=$JAVA_HOME/bin/java
|
---|
| 29 |
|
---|
| 30 | #echo $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ExecInstall $1
|
---|
| 31 |
|
---|
| 32 | $COMMAND -classpath $CLASSPATH org.tp23.antinstaller.runtime.ConfigurationLoader .
|
---|
| 33 | if [ $? != 0 ] ; then
|
---|
| 34 | exit $? ;
|
---|
| 35 | fi
|
---|
| 36 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.