gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r159244 - in gump/branches/Gump3: brutus-settings.sh dynagump/tools/mysqlfinder/ dynagump/tools/mysqlfinder/Main.class dynagump/tools/mysqlfinder/Main.java dynagump/tools/mysqlfinder/findmysql dynagump/webapp/WEB-INF/lib/ gump
Date Mon, 28 Mar 2005 15:27:41 GMT
Author: leosimons
Date: Mon Mar 28 07:27:40 2005
New Revision: 159244

URL: http://svn.apache.org/viewcvs?view=rev&rev=159244
Log:
Making it easier to get dynagump up and running.

* a simple java program to see if mysql is available

* ability in the gump script to call that program and complain if there is no mysql

* ignore mysql jars in the dynagump lib dir so they're not accidentally committed

* modify brutus-settings.sh so we find java and stuff

Added:
    gump/branches/Gump3/dynagump/tools/mysqlfinder/
    gump/branches/Gump3/dynagump/tools/mysqlfinder/Main.class   (with props)
    gump/branches/Gump3/dynagump/tools/mysqlfinder/Main.java
    gump/branches/Gump3/dynagump/tools/mysqlfinder/findmysql   (with props)
Modified:
    gump/branches/Gump3/brutus-settings.sh
    gump/branches/Gump3/dynagump/webapp/WEB-INF/lib/   (props changed)
    gump/branches/Gump3/gump

Modified: gump/branches/Gump3/brutus-settings.sh
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/brutus-settings.sh?view=diff&r1=159243&r2=159244
==============================================================================
--- gump/branches/Gump3/brutus-settings.sh (original)
+++ gump/branches/Gump3/brutus-settings.sh Mon Mar 28 07:27:40 2005
@@ -1 +1,3 @@
 export JAVA_HOME=/opt/jdk1.4
+export PATH=$JAVA_HOME/bin:$PATH
+

Added: gump/branches/Gump3/dynagump/tools/mysqlfinder/Main.class
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/dynagump/tools/mysqlfinder/Main.class?view=auto&rev=159244
==============================================================================
Binary file - no diff available.

Propchange: gump/branches/Gump3/dynagump/tools/mysqlfinder/Main.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: gump/branches/Gump3/dynagump/tools/mysqlfinder/Main.java
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/dynagump/tools/mysqlfinder/Main.java?view=auto&rev=159244
==============================================================================
--- gump/branches/Gump3/dynagump/tools/mysqlfinder/Main.java (added)
+++ gump/branches/Gump3/dynagump/tools/mysqlfinder/Main.java Mon Mar 28 07:27:40 2005
@@ -0,0 +1,12 @@
+public class Main
+{
+  public static void main(String[] args) {
+    try {
+      Class.forName("com.mysql.jdbc.Driver");
+      System.exit(0);
+    } catch(Throwable t) {
+      System.out.println("MySQL Driver not found!");
+      System.exit(1);
+    }
+  }
+}

Added: gump/branches/Gump3/dynagump/tools/mysqlfinder/findmysql
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/dynagump/tools/mysqlfinder/findmysql?view=auto&rev=159244
==============================================================================
--- gump/branches/Gump3/dynagump/tools/mysqlfinder/findmysql (added)
+++ gump/branches/Gump3/dynagump/tools/mysqlfinder/findmysql Mon Mar 28 07:27:40 2005
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+cp="."
+for jar in $GUMP_HOME/dynagump/webapp/WEB-INF/lib/*.jar; do
+  cp=$cp:$jar
+done
+mydir=`dirname $0`
+oldpwd=`pwd`
+cd $mydir
+java -classpath $cp Main
+cd $oldpwd
+unset cp
+unset mmydir
+unset oldpwd

Propchange: gump/branches/Gump3/dynagump/tools/mysqlfinder/findmysql
------------------------------------------------------------------------------
    svn:executable = *

Propchange: gump/branches/Gump3/dynagump/webapp/WEB-INF/lib/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Mar 28 07:27:40 2005
@@ -0,0 +1,3 @@
+jdbc2_0-stdext.jar
+jta-spec1_0_1.jar
+mysql-connector-java-3.1.7-bin.jar

Modified: gump/branches/Gump3/gump
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/gump?view=diff&r1=159243&r2=159244
==============================================================================
--- gump/branches/Gump3/gump (original)
+++ gump/branches/Gump3/gump Mon Mar 28 07:27:40 2005
@@ -619,6 +619,25 @@
   fi
   
   local current=`pwd`
+  cd "$GUMP_HOME/dynagump/tools/mysqlfinder"
+  local mysql_available=`./findmysql`
+  if [[ ! -z "$mysql_available" ]]; then
+     error "Cannot find mysql jdbc driver. Please retrieve it from
+
+     http://www.mysql.com/products/connector/j/
+
+and install the jarfile(s) it provides into
+
+     $GUMP_HOME/dynagump/webapp/WEB-INF/lib/
+
+If it is already installed somehwere else on your system, modify your
+CLASSPATH variable to point to it. You can customize the CLASSPATH
+variable inside a file named
+  
+  $GUMP_ENV_FILE
+  
+if you wish."
+  fi
   cd "$GUMP_HOME/dynagump"
   ./dynagump.sh "$command" $@
   cd "$current"



Mime
View raw message