head	1.3;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.2
	RELEASE_8_0_0:1.2
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2012.11.17.06.02.27;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2007.04.18.21.14.26;	author nivit;	state Exp;
branches;
next	1.1;

1.1
date	2005.07.06.15.43.59;	author hq;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Switch exporter over
@
text
@$FreeBSD: head/www/apache-forrest/files/patch-bin-forrest 300897 2012-07-14 14:29:18Z beat $
--- bin/forrest	Tue Apr 10 18:17:55 2007
+++ bin/forrest.port	Mon Apr 16 14:24:52 2007
@@@@ -20,6 +20,7 @@@@
 
 cygwin=false;
 darwin=false;
+freebsd=false;
 case `uname` in
   CYGWIN*) cygwin=true ;;
   Darwin*) darwin=true
@@@@ -27,7 +28,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
 
 if [ "$cygwin" = "true" ] ; then
   PROJECT_HOME=`cygpath -w "$PWD"`
@@@@ -35,6 +42,12 @@@@
   PROJECT_HOME=`pwd`
 fi
 
+if [ -z "$DISPLAY" ]; then
+       JAVA_AWT_HEADLESS="-Dforrest.jvmargs=-Djava.awt.headless=true"
+else
+       JAVA_AWT_HEADLESS=''
+fi
+
 if [ -z "$FORREST_HOME" ] ; then
   # use the location of this script to infer $FORREST_HOME
 
@@@@ -97,7 +110,7 @@@@
 echo "Apache Forrest.  Run 'forrest -projecthelp' to list options"
 echo
 export FORREST_HOME
-"$ANT_HOME/bin/ant" --noconfig -buildfile "$ANTFILE" -Dbasedir="$PROJECT_HOME" -emacs "$@@"
+"$ANT_HOME/bin/ant" --noconfig -buildfile "$ANTFILE" -Dbasedir="$PROJECT_HOME" ${JAVA_AWT_HEADLESS} -emacs "$@@"
 RESULT=$?
 
 # ---- Restore Classpath
@


1.2
log
@- Update to 0.8
@
text
@d1 1
a1 1
$FreeBSD: ports/www/apache-forrest/files/patch-bin-forrest,v 1.1 2005/07/06 15:43:59 hq Exp $
@


1.1
log
@- Update to 0.7
- Add 'java' category

PR:		83012
Submitted by:	maintainer
@
text
@d1 3
a3 4
$FreeBSD$

--- bin/forrest	Sun Jun 19 11:54:14 2005
+++ bin/forrest.port	Thu Jun 30 14:16:09 2005
d17 4
a20 4
+	    if [ -z "$JAVA_HOME" ] ; then
+		JAVA_HOME=%%JAVA_HOME%%
+	    fi
+	    ;;
d22 1
a22 1
+export JAVA_HOME;
d26 2
a27 2
@@@@ -72,6 +79,12 @@@@
   FORREST_DOT_HOME=$FORREST_HOME
d31 1
a31 1
+	JAVA_AWT_HEADLESS="-Dforrest.jvmargs=-Djava.awt.headless=true"
d33 1
a33 1
+	JAVA_AWT_HEADLESS=''
d36 2
a37 2
 # set the ant file to use
 ANTFILE="$FORREST_DOT_HOME/main/forrest.build.xml"
d39 1
a39 1
@@@@ -94,7 +107,7 @@@@
d43 2
a44 2
-"$ANT_HOME/bin/ant" --noconfig -buildfile "$ANTFILE" -Dbasedir="$PROJECT_HOME" -emacs $@@
+"$ANT_HOME/bin/ant" --noconfig -buildfile "$ANTFILE" -Dbasedir="$PROJECT_HOME" ${JAVA_AWT_HEADLESS} -emacs $@@
@

