You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by br...@apache.org on 2004/04/12 22:52:50 UTC

svn commit: rev 9980 - xml/forrest/trunk/scratchpad/forrestbot2/webapp

Author: brondsem
Date: Mon Apr 12 13:52:48 2004
New Revision: 9980

Modified:
   xml/forrest/trunk/scratchpad/forrestbot2/webapp/README.txt
Log:
wrapper script example; installation instructions

Modified: xml/forrest/trunk/scratchpad/forrestbot2/webapp/README.txt
==============================================================================
--- xml/forrest/trunk/scratchpad/forrestbot2/webapp/README.txt	(original)
+++ xml/forrest/trunk/scratchpad/forrestbot2/webapp/README.txt	Mon Apr 12 13:52:48 2004
@@ -15,7 +15,13 @@
 
 Installation
 ------------
-
+* Extract the war to a temporary directory
+* Modify welcome.local.html
+* Modify osuser.xml if you want to use an authenticator other than XML files
+* Modify projects.xml, groups.xml, and users.xml according to your needs
+* Modify settings.properties according to the server's specific setup
+* Repackage the war file
+* Deploy the war file in Tomcat or some other servlet container
 
 
 FAQ
@@ -30,4 +36,39 @@
 accurately simulate what the web interface does.
 
 Also, set debug-exec=true in settings.properties and make sure log4j.properties
-logs DEBUG.  This will log all the thread output.
\ No newline at end of file
+logs DEBUG.  This will log all the thread output.
+
+2. Can I do anything with this besides just running forrest?
+
+Sure.  Create a wrapper script and specify it as forrest-exec in settings.properties.  Here's an example:
+
+#!/bin/bash
+
+# remove env values set from container 
+PATH=/usr/bin
+CLASSPATH=
+# get env vars
+. /home/user/.profile
+
+# group writable for easier sharing of files with others who run forrestbot
+umask g+w
+
+# you can preprocess something
+xmlfile=$2
+if [ "${xmlfile##*.}" = "xml" ]                # everything after last .
+then
+    target=$3
+    if [ "$target" != "deploy" ]                # don't run snap on a deploy
+    then
+        projectTarget=${xmlfile%.*}               # everything before last .
+	# do something special for $projectTarget
+    fi
+else
+        echo "Syntax: forrest_wrapper.sh -f myapp.xml [build|deploy|...]"
+        exit
+fi
+
+# run forrest
+forrest $*
+
+# you can postprocess something
\ No newline at end of file