2003-01-15 01:33:52 +01:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
# //--------------------------------------------------------------------------//
|
|
|
|
# // $RCSfile$
|
|
|
|
# // $Revision$
|
|
|
|
# // $Date$
|
|
|
|
# //
|
2003-01-23 20:56:57 +01:00
|
|
|
# // Standard Jive Software ant file. Do not change this file. If you do,
|
2003-01-17 21:49:55 +01:00
|
|
|
# // you will have seven years of bad luck and bad builds.
|
2003-01-15 01:33:52 +01:00
|
|
|
# //--------------------------------------------------------------------------//
|
|
|
|
|
|
|
|
# //--------------------------------------------------------------------------//
|
|
|
|
# // Uncomment the following lines if you wish to set JAVA_HOME in this script
|
|
|
|
# //--------------------------------------------------------------------------//
|
|
|
|
# JAVA_HOME=
|
|
|
|
# EXPORT JAVA_HOME
|
|
|
|
|
|
|
|
# //--------------------------------------------------------------------------//
|
|
|
|
# // Check for the JAVA_HOME environment variable //
|
|
|
|
# //--------------------------------------------------------------------------//
|
|
|
|
if [ "$JAVA_HOME" != "" ] ; then
|
|
|
|
# //----------------------------------------------------------------------//
|
|
|
|
# // Create Ant's classpath //
|
|
|
|
# //----------------------------------------------------------------------//
|
2003-08-02 19:32:23 +02:00
|
|
|
CP=$JAVA_HOME/lib/tools.jar:./ant.jar:./junit.jar
|
2003-01-15 01:33:52 +01:00
|
|
|
|
|
|
|
# //----------------------------------------------------------------------//
|
|
|
|
# // Run ant //
|
|
|
|
# //----------------------------------------------------------------------//
|
|
|
|
$JAVA_HOME/bin/java -classpath $CP -Dant.home=. org.apache.tools.ant.Main $@
|
|
|
|
else
|
|
|
|
# //----------------------------------------------------------------------//
|
|
|
|
# // No JAVA_HOME error message //
|
|
|
|
# //----------------------------------------------------------------------//
|
|
|
|
echo "Jive Forums Build Error:"
|
|
|
|
echo ""
|
|
|
|
echo "The JAVA_HOME environment variable is not set. JAVA_HOME should point"
|
|
|
|
echo "to your java directory, ie: /usr/local/bin/jdk1.3. You can set"
|
|
|
|
echo "this via the command line like so:"
|
|
|
|
echo " export JAVA_HOME=/usr/local/bin/jdk1.3"
|
|
|
|
fi
|
|
|
|
|