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