Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@www.apache.org Received: (qmail 5434 invoked from network); 12 Apr 2004 20:52:51 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Apr 2004 20:52:51 -0000 Received: (qmail 80191 invoked by uid 500); 12 Apr 2004 20:52:39 -0000 Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 80147 invoked by uid 500); 12 Apr 2004 20:52:39 -0000 Mailing-List: contact forrest-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-cvs@xml.apache.org Received: (qmail 80132 invoked from network); 12 Apr 2004 20:52:39 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 12 Apr 2004 20:52:39 -0000 Received: (qmail 5425 invoked by uid 65534); 12 Apr 2004 20:52:50 -0000 Date: 12 Apr 2004 20:52:50 -0000 Message-ID: <20040412205250.5423.qmail@minotaur.apache.org> From: brondsem@apache.org To: forrest-cvs@xml.apache.org Subject: svn commit: rev 9980 - xml/forrest/trunk/scratchpad/forrestbot2/webapp X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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