[jbpm-commits] JBoss JBPM SVN: r5739 - in jbpm3/branches/jbpm-3.2-soa/modules: db and 2 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Oct 14 02:58:14 EDT 2009


Author: alex.guizar at jboss.com
Date: 2009-10-14 02:58:14 -0400 (Wed, 14 Oct 2009)
New Revision: 5739

Added:
   jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/ant/HibernatePropertiesTask.java
Removed:
   jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/db2.properties
   jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/mssql.properties
   jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/mysql.properties
   jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/oracle.properties
   jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/postgresql.properties
   jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/sybase.properties
Modified:
   jbpm3/branches/jbpm-3.2-soa/modules/db/pom.xml
   jbpm3/branches/jbpm-3.2-soa/modules/db/scripts/antrun-jbpmschema.xml
Log:
[JBPM-2582] Generate database update script correctly

Added: jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/ant/HibernatePropertiesTask.java
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/ant/HibernatePropertiesTask.java	                        (rev 0)
+++ jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/ant/HibernatePropertiesTask.java	2009-10-14 06:58:14 UTC (rev 5739)
@@ -0,0 +1,97 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.ant;
+
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Properties;
+import java.util.Map.Entry;
+import java.util.regex.Pattern;
+
+import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.Project;
+import org.apache.tools.ant.Task;
+import org.hibernate.cfg.Configuration;
+
+/**
+ * @author Alejandro Guizar
+ */
+public class HibernatePropertiesTask extends Task {
+
+  private String config;
+  private String prefix;
+  private Pattern includes;
+  private Pattern excludes;
+
+  public void execute() throws BuildException {
+    log("loading hibernate properties from " + config);
+
+    Configuration configuration = AntHelper.getConfiguration(config, null);
+    Properties properties = configuration.getProperties();
+    if (properties.isEmpty()) return;
+
+    StringBuffer nameBuf = new StringBuffer(prefix);
+    int prefixLength = prefix.length();
+
+    Project project = getProject();
+    for (Iterator i = properties.entrySet().iterator(); i.hasNext();) {
+      Map.Entry property = (Entry) i.next();
+
+      String name = (String) property.getKey();
+      if (include(name) && !exclude(name)) {
+        name = nameBuf.append(name).toString();
+
+        String value = (String) property.getValue();
+        log("setting '" + name + "' to: " + value);
+        project.setNewProperty(name, value);
+
+        // drop key from prefix
+        nameBuf.setLength(prefixLength);
+      }
+    }
+  }
+
+  private boolean include(String name) {
+    return includes == null || includes.matcher(name).matches();
+  }
+
+  private boolean exclude(String name) {
+    return excludes != null && excludes.matcher(name).matches();
+  }
+
+  public void setConfig(String config) {
+    this.config = config;
+  }
+
+  public void setPrefix(String prefix) {
+    this.prefix = prefix;
+  }
+
+  public void setIncludes(String regex) {
+    includes = Pattern.compile(regex);
+  }
+
+  public void setExcludes(String regex) {
+    excludes = Pattern.compile(regex);
+  }
+
+}

Modified: jbpm3/branches/jbpm-3.2-soa/modules/db/pom.xml
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/db/pom.xml	2009-10-13 16:25:52 UTC (rev 5738)
+++ jbpm3/branches/jbpm-3.2-soa/modules/db/pom.xml	2009-10-14 06:58:14 UTC (rev 5739)
@@ -1,20 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- ====================================================================== -->
-<!--                                                                        -->
-<!--  JBoss, the OpenSource J2EE webOS                                      -->
-<!--                                                                        -->
-<!--  Distributable under LGPL license.                                     -->
-<!--  See terms of license at http://www.gnu.org.                           -->
-<!--                                                                        -->
-<!-- ====================================================================== -->
+  <!-- ====================================================================== -->
+  <!--                                                                        -->
+  <!--  JBoss, the OpenSource J2EE webOS                                      -->
+  <!--                                                                        -->
+  <!--  Distributable under LGPL license.                                     -->
+  <!--  See terms of license at http://www.gnu.org.                           -->
+  <!--                                                                        -->
+  <!-- ====================================================================== -->
 
-<!-- $Id$ -->
+  <!-- $Id$ -->
 
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
-
   <name>JBoss jBPM3 - Database</name>
   <groupId>org.jbpm.jbpm3</groupId>
   <artifactId>jbpm-db</artifactId>
@@ -28,6 +27,112 @@
     <relativePath>../../pom.xml</relativePath>
   </parent>
 
+  <properties>
+    <previous.version>3.2.5.SP5</previous.version>
+  </properties>
+
+  <profiles>
+    <profile>
+      <id>update</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-dependency-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>previous-version</id>
+                <phase>generate-resources</phase>
+                <goals>
+                  <goal>unpack</goal>
+                </goals>
+                <configuration>
+                  <artifactItems>
+                    <artifactItem>
+                      <groupId>org.jbpm.jbpm3</groupId>
+                      <artifactId>jbpm-db</artifactId>
+                      <version>${previous.version}</version>
+                    </artifactItem>
+                  </artifactItems>
+                  <outputDirectory>${previous.version.directory}</outputDirectory>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>update-schema</id>
+                <phase>process-resources</phase>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+                <configuration>
+                  <tasks>
+                    <property name="project.output.dir" value="${project.build.outputDirectory}"/>
+                    <property name="previous.version.dir" value="${previous.version.directory}"/>
+                    <ant antfile="scripts/antrun-jbpmschema.xml" target="update-schema"
+                      inheritRefs="true"/>
+                  </tasks>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+
+      <properties>
+        <previous.version.directory>${project.build.directory}/${previous.version}</previous.version.directory>
+      </properties>
+
+      <dependencies>
+        <dependency>
+          <groupId>com.ibm</groupId>
+          <artifactId>db2jcc</artifactId>
+          <scope>runtime</scope>
+        </dependency>
+        <dependency>
+          <groupId>com.ibm</groupId>
+          <artifactId>db2jcc_license_cu</artifactId>
+          <scope>runtime</scope>
+        </dependency>
+        <dependency>
+          <groupId>net.sourceforge.jtds</groupId>
+          <artifactId>jtds</artifactId>
+          <scope>runtime</scope>
+        </dependency>
+        <dependency>
+          <groupId>com.microsoft.sqlserver</groupId>
+          <artifactId>msjdbc</artifactId>
+          <scope>runtime</scope>
+        </dependency>
+        <dependency>
+          <groupId>mysql</groupId>
+          <artifactId>mysql-connector-java</artifactId>
+          <scope>runtime</scope>
+        </dependency>
+        <dependency>
+          <groupId>com.oracle</groupId>
+          <artifactId>ojdbc14</artifactId>
+          <scope>runtime</scope>
+        </dependency>
+        <dependency>
+          <groupId>postgresql</groupId>
+          <artifactId>postgresql</artifactId>
+          <scope>runtime</scope>
+        </dependency>
+      </dependencies>
+
+      <repositories>
+        <repository>
+          <id>qa.jboss.com</id>
+          <url>http://www.qa.jboss.com/jdbc-drivers/maven2</url>
+        </repository>
+      </repositories>
+    </profile>
+  </profiles>
+
   <!-- Dependencies -->
   <dependencies>
     <!-- jBPM Dependencies -->
@@ -53,22 +158,12 @@
       <classifier>config</classifier>
       <version>${project.version}</version>
     </dependency>
-    
+
     <dependency>
       <groupId>log4j</groupId>
       <artifactId>log4j</artifactId>
       <scope>runtime</scope>
     </dependency>
-    <dependency>
-      <groupId>mysql</groupId>
-      <artifactId>mysql-connector-java</artifactId>
-      <scope>runtime</scope>
-    </dependency>
-    <dependency>
-    	<groupId>postgresql</groupId>
-    	<artifactId>postgresql</artifactId>
-    	<scope>runtime</scope>
-    </dependency>
   </dependencies>
 
   <!-- Plugins -->
@@ -79,27 +174,30 @@
         <filtering>true</filtering>
       </resource>
     </resources>
+
     <plugins>
       <plugin>
         <artifactId>maven-antrun-plugin</artifactId>
         <executions>
           <execution>
-            <id>jbpmschema</id>
-            <phase>compile</phase>
+            <id>create-drop-schema</id>
+            <phase>generate-resources</phase>
             <goals>
               <goal>run</goal>
             </goals>
             <configuration>
               <tasks>
-                <property name="maven.runtime.classpath" refid="maven.runtime.classpath" />
-                <ant antfile="scripts/antrun-jbpmschema.xml" target="create-schema" />
-                <ant antfile="scripts/antrun-jbpmschema.xml" target="drop-schema" />
-                <ant antfile="scripts/antrun-jbpmschema.xml" target="update-schema" />
+                <property name="project.output.dir" value="${project.build.outputDirectory}"/>
+                <ant antfile="scripts/antrun-jbpmschema.xml" target="create-schema"
+                  inheritRefs="true"/>
+                <ant antfile="scripts/antrun-jbpmschema.xml" target="drop-schema"
+                  inheritRefs="true"/>
               </tasks>
             </configuration>
           </execution>
         </executions>
       </plugin>
+
       <plugin>
         <artifactId>maven-jar-plugin</artifactId>
         <configuration>
@@ -110,4 +208,5 @@
       </plugin>
     </plugins>
   </build>
+
 </project>

Modified: jbpm3/branches/jbpm-3.2-soa/modules/db/scripts/antrun-jbpmschema.xml
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/db/scripts/antrun-jbpmschema.xml	2009-10-13 16:25:52 UTC (rev 5738)
+++ jbpm3/branches/jbpm-3.2-soa/modules/db/scripts/antrun-jbpmschema.xml	2009-10-14 06:58:14 UTC (rev 5739)
@@ -9,124 +9,151 @@
   <!-- ================================================================== -->
 
   <target name="init">
-    <taskdef name="jbpmschema" classname="org.jbpm.ant.JbpmSchemaTask">
-      <classpath path="${maven.runtime.classpath}" />
-    </taskdef>
-
-    <property name="scriptsdir" value="${basedir}/target/classes" />
-    <mkdir dir="${scriptsdir}" />
+    <taskdef name="jbpmschema"
+             classname="org.jbpm.ant.JbpmSchemaTask"
+             classpathref="maven.runtime.classpath" />
+    <taskdef name="hbproperties"
+             classname="org.jbpm.ant.HibernatePropertiesTask"
+             classpathref="maven.runtime.classpath" />
+    <mkdir dir="${project.output.dir}" />
   </target>
 
-  <target name="create-schema"
-          depends="init"
-          description="Generate schema creation scripts">
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.db2.sql"
+  <target name="create-schema" depends="init" description="Generate schema creation scripts">
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.db2.sql"
                 config="hibernate.cfg.db2.xml"
                 action="create" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.derby.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.derby.sql"
                 config="hibernate.cfg.derby.xml"
                 action="create" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.firebird.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.firebird.sql"
                 config="hibernate.cfg.firebird.xml"
                 action="create" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.hsqldb.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.hsqldb.sql"
                 config="hibernate.cfg.hsqldb.xml"
                 action="create" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.ingres.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.ingres.sql"
                 config="hibernate.cfg.ingres.xml"
                 action="create" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.interbase.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.interbase.sql"
                 config="hibernate.cfg.interbase.xml"
                 action="create" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.mckoi.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.mckoi.sql"
                 config="hibernate.cfg.mckoi.xml"
                 action="create" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.mssql.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.mssql.sql"
                 config="hibernate.cfg.mssql.xml"
                 action="create" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.mysql.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.mysql.sql"
                 config="hibernate.cfg.mysql.xml"
                 action="create"
                 delimiter=";" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.oracle.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.oracle.sql"
                 config="hibernate.cfg.oracle.xml"
                 action="create"
                 delimiter=";" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.postgresql.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.postgresql.sql"
                 config="hibernate.cfg.postgresql.xml"
                 action="create"
                 delimiter=";" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.sapdb.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.sapdb.sql"
                 config="hibernate.cfg.sapdb.xml"
                 action="create" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.sybase.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.sybase.sql"
                 config="hibernate.cfg.sybase.xml"
                 action="create" />
-    <concat destfile="${scriptsdir}/jbpm.jpdl.sybase.sql" append="yes">go</concat>
+    <concat destfile="${project.output.dir}/jbpm.jpdl.sybase.sql" append="yes">go</concat>
   </target>
 
-  <target name="drop-schema"
-          depends="init"
-          description="Generate schema drop scripts">
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.db2.drop.sql"
+  <target name="drop-schema" depends="init" description="Generate schema drop scripts">
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.db2.drop.sql"
                 config="hibernate.cfg.db2.xml"
                 action="drop" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.hsqldb.drop.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.hsqldb.drop.sql"
                 config="hibernate.cfg.hsqldb.xml"
                 action="drop" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.mssql.drop.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.mssql.drop.sql"
                 config="hibernate.cfg.mssql.xml"
                 action="drop" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.mysql.drop.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.mysql.drop.sql"
                 config="hibernate.cfg.mysql.xml"
                 action="drop"
                 delimiter=";" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.oracle.drop.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.oracle.drop.sql"
                 config="hibernate.cfg.oracle.xml"
                 action="drop"
                 delimiter=";" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.postgresql.drop.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.postgresql.drop.sql"
                 config="hibernate.cfg.postgresql.xml"
                 action="drop"
                 delimiter=";" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.sybase.drop.sql"
+    <jbpmschema output="${project.output.dir}/jbpm.jpdl.sybase.drop.sql"
                 config="hibernate.cfg.sybase.xml"
                 action="drop" />
-    <concat destfile="${scriptsdir}/jbpm.jpdl.sybase.drop.sql" append="yes">go</concat>
+    <concat destfile="${project.output.dir}/jbpm.jpdl.sybase.drop.sql" append="yes">go</concat>
   </target>
 
-  <target name="update-schema"
-          depends="init"
-          description="Generate schema update scripts">
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.db2.update322.sql"
-                config="hibernate.cfg.db2.xml"
-                properties="db2.properties"
-                action="update"
-                delimiter=";" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.mssql.update322.sql"
-                config="hibernate.cfg.mssql.xml"
-                properties="mssql.properties"
-                action="update" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.mysql.update322.sql"
-                config="hibernate.cfg.mysql.xml"
-                properties="mysql.properties"
-                action="update"
-                delimiter=";" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.oracle.update322.sql"
-                config="hibernate.cfg.oracle.xml"
-                properties="oracle.properties"
-                action="update"
-                delimiter=";" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.postgresql.update322.sql"
-                config="hibernate.cfg.postgresql.xml"
-                properties="postgresql.properties"
-                action="update"
-                delimiter=";" />
-    <jbpmschema output="${scriptsdir}/jbpm.jpdl.sybase.update322.sql"
-                config="hibernate.cfg.sybase.xml"
-                properties="sybase.properties"
-                action="update" />
-    <concat destfile="${scriptsdir}/jbpm.jpdl.sybase.update322.sql" append="yes">go</concat>
+  <target name="update-schema" depends="init" description="Generate schema update scripts">
+    <generate-update-script db="db2" delimiter=";" />
+    <generate-update-script db="mssql" delimiter=";" />
+    <generate-update-script db="mysql" delimiter=";" />
+    <generate-update-script db="oracle" delimiter=";" />
+    <generate-update-script db="postgresql" delimiter=";" />
+    <generate-update-script db="sybase" />
   </target>
 
+  <macrodef name="generate-update-script">
+    <attribute name="db" />
+    <attribute name="delimiter" />
+    <sequential>
+      <hbproperties config="hibernate.cfg.@{db}.xml"
+                    prefix="@{db}."
+                    includes="hibernate\.connection\..*" />
+
+      <echo>Dropping current schema @{db}</echo>
+      <sql src="${project.output.dir}/jbpm.jpdl.@{db}.drop.sql"
+           url="${@{db}.hibernate.connection.url}"
+           driver="${@{db}.hibernate.connection.driver_class}"
+           userid="${@{db}.hibernate.connection.username}"
+           password="${@{db}.hibernate.connection.password}"
+           classpathref="maven.runtime.classpath"
+           autocommit="yes"
+           onerror="continue" />
+
+      <echo>Creating previous schema @{db}</echo>
+      <sql src="${previous.version.dir}/jbpm.jpdl.@{db}.sql"
+           url="${@{db}.hibernate.connection.url}"
+           driver="${@{db}.hibernate.connection.driver_class}"
+           userid="${@{db}.hibernate.connection.username}"
+           password="${@{db}.hibernate.connection.password}"
+           classpathref="maven.runtime.classpath"
+           autocommit="yes"
+           onerror="continue" />
+
+      <echo>Generating update script @{db}</echo>
+      <jbpmschema output="${project.output.dir}/jbpm.jpdl.@{db}.update.sql"
+                  config="hibernate.cfg.@{db}.xml"
+                  action="update"
+                  delimiter="@{delimiter}" />
+
+      <echo>Dropping previous schema @{db}</echo>
+      <sql src="${project.output.dir}/jbpm.jpdl.@{db}.drop.sql"
+           url="${@{db}.hibernate.connection.url}"
+           driver="${@{db}.hibernate.connection.driver_class}"
+           userid="${@{db}.hibernate.connection.username}"
+           password="${@{db}.hibernate.connection.password}"
+           classpathref="maven.compile.classpath"
+           autocommit="yes"
+           onerror="continue" />
+
+      <echo>Creating current schema @{db}</echo>
+      <sql src="${project.output.dir}/jbpm.jpdl.@{db}.sql"
+           url="${@{db}.hibernate.connection.url}"
+           driver="${@{db}.hibernate.connection.driver_class}"
+           userid="${@{db}.hibernate.connection.username}"
+           password="${@{db}.hibernate.connection.password}"
+           classpathref="maven.runtime.classpath"
+           autocommit="yes"
+           onerror="continue" />
+    </sequential>
+  </macrodef>
 </project>

Deleted: jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/db2.properties
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/db2.properties	2009-10-13 16:25:52 UTC (rev 5738)
+++ jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/db2.properties	2009-10-14 06:58:14 UTC (rev 5739)
@@ -1,8 +0,0 @@
-hibernate.dialect=org.hibernate.dialect.DB2Dialect
-#
-# This uses the jbpm322 database schema as reference for the SchemaUpdate task
-#
-hibernate.connection.driver_class=com.ibm.db2.jcc.DB2Driver
-hibernate.connection.url=${jdbc.db2.url}
-hibernate.connection.username=jbpm322
-hibernate.connection.password=jbpm322

Deleted: jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/mssql.properties
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/mssql.properties	2009-10-13 16:25:52 UTC (rev 5738)
+++ jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/mssql.properties	2009-10-14 06:58:14 UTC (rev 5739)
@@ -1,8 +0,0 @@
-hibernate.dialect=org.hibernate.dialect.SQLServerDialect
-#
-# This uses the jbpm322 database schema as reference for the SchemaUpdate task
-#
-hibernate.connection.driver_class=com.microsoft.sqlserver.jdbc.SQLServerDriver
-hibernate.connection.url=jdbc:sqlserver://${jdbc.mssql.server}:${jdbc.mssql.port}/jbpm322
-hibernate.connection.username=${jdbc.mssql.username}
-hibernate.connection.password=${jdbc.mssql.password}
\ No newline at end of file

Deleted: jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/mysql.properties
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/mysql.properties	2009-10-13 16:25:52 UTC (rev 5738)
+++ jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/mysql.properties	2009-10-14 06:58:14 UTC (rev 5739)
@@ -1,8 +0,0 @@
-hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
-#
-# This uses the jbpm322 database schema as reference for the SchemaUpdate task
-#
-hibernate.connection.driver_class=com.mysql.jdbc.Driver
-hibernate.connection.url=jdbc:mysql://${jdbc.mysql.server}:${jdbc.mysql.port}/jbpm322
-hibernate.connection.username=${jdbc.mysql.username}
-hibernate.connection.password=${jdbc.mysql.password}

Deleted: jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/oracle.properties
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/oracle.properties	2009-10-13 16:25:52 UTC (rev 5738)
+++ jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/oracle.properties	2009-10-14 06:58:14 UTC (rev 5739)
@@ -1,8 +0,0 @@
-hibernate.dialect=org.hibernate.dialect.Oracle9Dialect
-#
-# This uses the jbpm322 database schema as reference for the SchemaUpdate task
-#
-hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
-hibernate.connection.url=${jdbc.oracle.url}
-hibernate.connection.username=jbpm322
-hibernate.connection.password=jbpm322

Deleted: jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/postgresql.properties
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/postgresql.properties	2009-10-13 16:25:52 UTC (rev 5738)
+++ jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/postgresql.properties	2009-10-14 06:58:14 UTC (rev 5739)
@@ -1,8 +0,0 @@
-hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
-#
-# This uses the jbpm322 database schema as reference for the SchemaUpdate task
-#
-hibernate.connection.driver_class=org.postgresql.Driver
-hibernate.connection.url=jdbc:postgresql://${jdbc.postgresql.server}:${jdbc.postgresql.port}/jbpm322
-hibernate.connection.username=${jdbc.postgresql.username}
-hibernate.connection.password=${jdbc.postgresql.password}

Deleted: jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/sybase.properties
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/sybase.properties	2009-10-13 16:25:52 UTC (rev 5738)
+++ jbpm3/branches/jbpm-3.2-soa/modules/db/src/main/resources/sybase.properties	2009-10-14 06:58:14 UTC (rev 5739)
@@ -1,8 +0,0 @@
-hibernate.dialect=org.hibernate.dialect.SybaseDialect
-#
-# This uses the jbpm322 database schema as reference for the SchemaUpdate task
-#
-hibernate.connection.driver_class=${jdbc.sybase.driver}
-hibernate.connection.url=jdbc:sybase:Tds:${jdbc.sybase.server}:${jdbc.sybase.port}/jbpm322
-hibernate.connection.username=${jdbc.sybase.username}
-hibernate.connection.password=${jdbc.sybase.password}



More information about the jbpm-commits mailing list