geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/twiddle/src/conf forehead.conf twiddle.conf
Date Sun, 24 Aug 2003 09:27:44 GMT
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 @@
         <version>DEV</version>
         <properties>
           <module>true</module>
  +        <runtime>true</runtime>
         </properties>
       </dependency>
       
       <!-- Thirdparty Dependencies -->
  +    
  +    <!-- this does not work because the artifact on ibiblio does not contain version
info
  +    <dependency>
  +      <groupId>javacc</groupId>
  +      <artifactId>JavaCC</artifactId>
  +      <type>zip</type>
  +      <version></version>
  +      <properties>
  +        <runtime>false</runtime>
  +      </properties>
  +    </dependency>
  +    -->
  +    
  +    <dependency>
  +      <id>forehead</id>
  +      <version>SNAPSHOT</version>
  +      <url>http://forehead.werken.com</url>
  +      <properties>
  +        <runtime>true</runtime>
  +      </properties>
  +    </dependency>
  +    
  +    <dependency>
  +      <id>classworlds</id>
  +      <version>SNAPSHOT</version>
  +      <url>http://werken.com</url>
  +      <properties>
  +        <runtime>true</runtime>
  +      </properties>
  +    </dependency>
       
       <dependency>
         <id>castor</id>
  
  
  
  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
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!-- $Revision: 1.1 $ $Date: 2003/08/24 09:27:44 $ -->
  
  <configuration xmlns="http://geronimo.apache.org/xml/schema/Twiddle/Configuration">
    
    <commands>
      <command name="exit" code="org.apache.geronimo.twiddle.commands.ExitCommand"/>
    </commands>
  
  </configuration>
  
  
  

Mime
View raw message