source: release-kits/lirk3/bin/ant-installer/examples/buildtypes/script-auto/checkConfig.sh@ 14982

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

initial import of LiRK3

File size: 946 bytes
Line 
1#!/bin/sh
2
3# This script checks the configuration
4
5
6
7dir=`expr match "$0" '\(.*\)checkConfig.sh'`
8# if it we did not call ./ change to the directory we called
9if [ "$dir" != "./" ] ; then
10 if [ "$dir" != "" ] ; then
11 cd "$dir" ;
12 fi
13fi
14# Installer requires Java
15if [ "$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;
19fi
20
21# Installer from command line classpath
22cd installer
23#CLASSPATH=../../../../lib/xercesImpl.jar
24#CLASSPATH=$CLASSPATH:../../../../lib/xml-apis.jar
25CLASSPATH=../../../../lib/ant-installer.jar
26CLASSPATH=$CLASSPATH:../../../../antlib/ant.jar
27
28COMMAND=$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 .
33if [ $? != 0 ] ; then
34 exit $? ;
35fi
36
Note: See TracBrowser for help on using the repository browser.