--- tools/ant/bin/ant Tue Apr 10 18:18:14 2007 +++ tools/ant/bin/ant.port Mon Apr 16 14:27:19 2007 @@ -78,6 +78,7 @@ # OS specific support. $var _must_ be set to either true or false. cygwin=false; darwin=false; +freebsd=false; case "`uname`" in CYGWIN*) cygwin=true ;; Darwin*) darwin=true @@ -85,7 +86,13 @@ JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home fi ;; + FreeBSD*) freebsd=true + if [ -z "$JAVA_HOME" ] ; then + JAVA_HOME=%%JAVA_HOME%% + fi + ;; esac +export JAVA_HOME # Forrest uses its own packaged Ant, so don't use the system Ant libraries #if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME" ] ; then