forked from dirmgr/slamd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·43 lines (35 loc) · 1.4 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·43 lines (35 loc) · 1.4 KB
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
#!/bin/sh
###############################################################################
# Sun Public License
#
# The contents of this file are subject to the Sun Public License Version
# 1.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is available at http://www.sun.com/
#
# The Original Code is the SLAMD Distributed Load Generation Engine.
# The Initial Developer of the Original Code is Neil A. Wilson.
# Portions created by Neil A. Wilson are Copyright (C) 2004-2019.
# Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
# All Rights Reserved.
#
# Contributor(s): Neil A. Wilson
###############################################################################
# Change to the location of this build script.
cd `dirname $0`
# See if JAVA_HOME is set. If not, then see if there is a java executable in
# the path and try to figure out JAVA_HOME from that.
if test -z "${JAVA_HOME}"
then
CLASSPATH="ext"
JAVA_HOME=`java -cp ${CLASSPATH} FindJavaHome`
if test -z "${JAVA_HOME}"
then
echo "ERROR: Unable to determine the path to the JDK installation."
echo " Please specify it using the JAVA_HOME environment variable."
exit 1
fi
fi
# Execute the ant build script and pass it any user-provided arguments.
ANT_HOME=`pwd`/ext/ant
export ANT_HOME
ext/ant/bin/ant -quiet --noconfig ${*}