source: release-kits/lirk3/bin/ant-installer/examples/buildtypes/ifProperty/installer/install.sh@ 14982

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

initial import of LiRK3

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