-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·52 lines (45 loc) · 1.32 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! /bin/sh
# $Id$
#
# build.sh always calls the version of ant distributed with ArgoUML
#
# OS specific support.
darwin=false
case "`uname`" in
Darwin*) darwin=true;;
esac
# +-------------------------------------------------------------------------+
# | Verify and Set Required Environment Variables |
# +-------------------------------------------------------------------------+
if [ "$JAVA_HOME" = "" ] ; then
if $darwin; then
# Set Java Home automatically
JAVA_HOME=/Library/Java/Home
export JAVA_HOME
else
echo "***************************************************************"
echo " ERROR: JAVA_HOME environment variable not found."
echo ""
echo " Please set JAVA_HOME to the Java JDK installation directory."
echo "***************************************************************"
exit 1
fi
fi
if [ -d `pwd`/tools ] ; then
ANT_HOME=`pwd`/tools/apache-ant-1.7.0
else
echo "***************************************************************"
echo " ERROR: tools directory not found."
echo ""
echo " Please check-out the argouml tools directory to"
echo ""
echo " `pwd`/tools"
echo "***************************************************************"
exit 1
fi
echo ANT_HOME is: $ANT_HOME
echo
echo Starting Ant...
echo
$ANT_HOME/bin/ant $*
#exit