Return-Path: Delivered-To: apmail-incubator-geronimo-cvs-archive@incubator.apache.org Received: (qmail 96926 invoked by uid 500); 24 Aug 2003 09:27:30 -0000 Mailing-List: contact geronimo-cvs-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: geronimo-dev@incubator.apache.org Delivered-To: mailing list geronimo-cvs@incubator.apache.org Received: (qmail 96660 invoked from network); 24 Aug 2003 09:27:23 -0000 Received: from minotaur.apache.org (209.237.227.194) by daedalus.apache.org with SMTP; 24 Aug 2003 09:27:23 -0000 Received: (qmail 59291 invoked by uid 1715); 24 Aug 2003 09:27:44 -0000 Date: 24 Aug 2003 09:27:44 -0000 Message-ID: <20030824092744.59290.qmail@minotaur.apache.org> From: jdillon@apache.org To: incubator-geronimo-cvs@apache.org Subject: cvs commit: incubator-geronimo/modules/twiddle/src/conf forehead.conf twiddle.conf X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jdillon 2003/08/24 02:27:44 Modified: modules/twiddle project.xml Added: modules/twiddle/src/bin twiddle modules/twiddle/src/conf forehead.conf twiddle.conf Log: o Initial unix bootstrap script + basic configuration Revision Changes Path 1.6 +32 -1 incubator-geronimo/modules/twiddle/project.xml Index: project.xml =================================================================== RCS file: /home/cvs/incubator-geronimo/modules/twiddle/project.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- project.xml 16 Aug 2003 19:31:46 -0000 1.5 +++ project.xml 24 Aug 2003 09:27:44 -0000 1.6 @@ -35,10 +35,41 @@ DEV true + true + + + + + forehead + SNAPSHOT + http://forehead.werken.com + + true + + + + + classworlds + SNAPSHOT + http://werken.com + + true + + castor 1.1 incubator-geronimo/modules/twiddle/src/bin/twiddle Index: twiddle =================================================================== #!/bin/sh ############################################################################## ## ## ## Twiddle JVM Bootstrap ## ## ## ############################################################################## ## ## $Revision: 1.1 $ $Date: 2003/08/24 09:27:44 $ ## PROGNAME=`basename $0` DIRNAME=`dirname $0` # Use the maximum available, or set MAX_FD != -1 to use that MAX_FD="maximum" # The version of forehead to boot with FOREHEAD_VERSION="SNAPSHOT" warn() { echo "${PROGNAME}: $*" } die() { warn "$*" exit 1 } # OS specific support (must be 'true' or 'false'). cygwin=false; darwin=false; case "`uname`" in CYGWIN*) cygwin=true ;; Darwin*) darwin=true ;; esac # For Cygwin, ensure paths are in UNIX format before anything is touched if $cygwin ; then [ -n "$TWIDDLE_HOME" ] && TWIDDLE_HOME=`cygpath --unix "$TWIDDLE_HOME"` [ -n "$JAVACMD" ] && JAVACMD=`cygpath --unix "$JAVACMD"` [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` fi # Locate TWIDDLE_HOME if not it is not set if [ "x$TWIDDLE_HOME" = "x" ]; then TWIDDLE_HOME=`cd $DIRNAME/..; pwd` fi # Use default forehead config if [ -z "$FOREHEAD_CONF" ]; then FOREHEAD_CONF="$TWIDDLE_HOME/etc/forehead.conf" fi FOREHEAD_CLASSPATH="$TWIDDLE_HOME/lib/forehead-${FOREHEAD_VERSION}.jar" # Determine the Java command to use to start the JVM if [ -z "$JAVACMD" ]; then if [ -n "$JAVA_HOME" ]; then if [ -x "$JAVA_HOME/jre/sh/java" ]; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" else JAVACMD="$JAVA_HOME/bin/java" fi else JAVACMD="java" fi fi if [ ! -x "$JAVACMD" ]; then die "JAVA_HOME is not defined correctly; can not execute: $JAVACMD" fi if [ -z "$JAVA_HOME" ] ; then warn "JAVA_HOME environment variable is not set" fi # Increase the maximum file descriptors if we can if [ "$cygwin" = "false" ]; then MAX_FD_LIMIT=`ulimit -H -n` if [ $? -eq 0 ]; then if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ]; then # use the system max MAX_FD="$MAX_FD_LIMIT" fi ulimit -n $MAX_FD if [ $? -ne 0 ]; then warn "Could not set maximum file descriptor limit: $MAX_FD" fi else warn "Could not query system maximum file descriptor limit: $MAX_FD_LIMIT" fi fi # Setup Profiler useprofiler=false if [ "x$PROFILER" != "x" ]; then if [ -r "$PROFILER" ]; then . $PROFILER useprofiler=true else die "Profiler file not found: $PROFILER" fi fi # For Darwin, use classes.jar for TOOLS_JAR TOOLS_JAR="$JAVA_HOME/lib/tools.jar" if $darwin; then TOOLS_JAR="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/classes.jar" fi # For Cygwin, switch paths to Windows format before running java if $cygwin; then TWIDDLE_HOME=`cygpath --path --windows "$TWIDDLE_HOME"` JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` FOREHEAD_CONF=`cygpath --path --windows "$FOREHEAD_CONF"` FOREHEAD_CLASSPATH=`cygpath --path --windows "$FOREHEAD_CLASSPATH"` TOOLS_JAR=`cygpath --path --windows "$TOOLS_JAR"` fi # Start the Profiler or the JVM if $useprofiler; then runProfiler else exec $JAVACMD $JAVA_OPTS \ -classpath "$FOREHEAD_CLASSPATH" \ -Dprogram.name="$PROGNAME" \ -Dforehead.conf.file="$FOREHEAD_CONF" \ -Dtwiddle.home="$TWIDDLE_HOME" \ -Dtools.jar="$TOOLS_JAR" \ com.werken.forehead.Forehead "$@" fi 1.1 incubator-geronimo/modules/twiddle/src/conf/forehead.conf Index: forehead.conf =================================================================== ############################################################################## ## ## ## Twiddle ForeHead Configuration ## ## ## ############################################################################## ## ## $Revision: 1.1 $ $Date: 2003/08/24 09:27:44 $ ## +twiddle.home +java.home +tools.jar =[root.twiddle] org.apache.geronimo.twiddle.cli.Main [root] ${tools.jar} [root.twiddle] ${twiddle.home}/lib/*.jar 1.1 incubator-geronimo/modules/twiddle/src/conf/twiddle.conf Index: twiddle.conf ===================================================================