Revision: | 1.1 |
Committed: | Wed Jun 4 03:08:44 2008 UTC (16 years, 11 months ago) by afaq |
Branch: | MAIN |
CVS Tags: | DBS_2_0_3_pre, DBS_2_0_3_pre1, DBS_2_0_2, DBS_2_0_0, DBS_1_2_9, DBS_1_2_8, DBS_1_2_6, DBS_1_2_5, DBS_1_2_3, DBS_1_2_2, DBS_1_2_1, DBS_1_2_0, DBS_1_1_9, DBS_1_1_8, DBS_1_1_7, DBS_1_1_6 |
Log Message: | Its time for setup.sh to become setup.sh.tobe, no more over writing this file now |
# | User | Rev | Content |
---|---|---|---|
1 | afaq | 1.1 | #!/bin/sh |
2 | # | ||
3 | # Setting JAVA_HOME ANT_HOME and DBS_CONFIG | ||
4 | # is users responsibility. | ||
5 | # DBS_SERVER_CONFIG needs to be set before deploying to TomCat | ||
6 | # | ||
7 | # | ||
8 | export ANT_HOME=/home/sekhri/apache-ant-1.6.5/ | ||
9 | #export JAVA_HOME=/home/sekhri/j2ee/SDK/jdk/ | ||
10 | #export JAVA_HOME=/usr/java/jdk1.5.0_10/ | ||
11 | export JAVA_HOME=/usr/java/jdk1.5.0_14/ | ||
12 | export DBS_SERVER_CONFIG=$PWD/etc/context.xml | ||
13 | |||
14 | ret=0 | ||
15 | |||
16 | #if [ "${DBS_SERVER_CONFIG}" == "" ]; then | ||
17 | # echo "Error! Please set your DBS_SERVER_CONFIG variable and source this file again" | ||
18 | # ret=1 | ||
19 | #fi | ||
20 | |||
21 | if [ "${JAVA_HOME}" == "" ]; then | ||
22 | echo "Error! Please set your JAVA_HOME variable and source this file again" | ||
23 | ret=1 | ||
24 | fi | ||
25 | if [ "${ANT_HOME}" == "" ]; then | ||
26 | echo "Error! Please set your ANT_HOME variable and source this file again" | ||
27 | ret=1 | ||
28 | fi | ||
29 | |||
30 | if [ $ret == 0 ]; then | ||
31 | export PATH=${JAVA_HOME}/bin:${ANT_HOME}/bin:$PATH | ||
32 | alias ant='ant --noconfig' | ||
33 | fi | ||
34 | |||
35 |