[jbpm-commits] JBoss JBPM SVN: r2031 - in jbpm3/trunk/modules/jpdl/core: scripts and 1 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Aug 27 08:11:27 EDT 2008


Author: thomas.diesler at jboss.com
Date: 2008-08-27 08:11:27 -0400 (Wed, 27 Aug 2008)
New Revision: 2031

Added:
   jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.hsqldb.xml
   jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.mysql.xml
Removed:
   jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.xml
Modified:
   jbpm3/trunk/modules/jpdl/core/pom.xml
   jbpm3/trunk/modules/jpdl/core/scripts/antrun-jbpm-config.xml
   jbpm3/trunk/modules/jpdl/core/scripts/assembly-config.xml
Log:
Parameterize hibernate cfg concat

Modified: jbpm3/trunk/modules/jpdl/core/pom.xml
===================================================================
--- jbpm3/trunk/modules/jpdl/core/pom.xml	2008-08-27 10:15:00 UTC (rev 2030)
+++ jbpm3/trunk/modules/jpdl/core/pom.xml	2008-08-27 12:11:27 UTC (rev 2031)
@@ -10,211 +10,227 @@
 <!-- ====================================================================== -->
 
 <!-- $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>
+  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 jBPM - jPDL Core</name>
+  <groupId>org.jboss.jbpm</groupId>
+  <artifactId>jbpm-jpdl-core</artifactId>
+  <packaging>jar</packaging>
 
-   <name>JBoss jBPM - jPDL Core</name>
-   <groupId>org.jboss.jbpm</groupId>
-   <artifactId>jbpm-jpdl-core</artifactId>
-   <packaging>jar</packaging>
-
    <!-- Parent -->
-   <parent>
-      <groupId>org.jboss.jbpm</groupId>
-      <artifactId>jbpm-jpdl</artifactId>
-      <version>3.3.0-SNAPSHOT</version>
-   </parent>
+  <parent>
+    <groupId>org.jboss.jbpm</groupId>
+    <artifactId>jbpm-jpdl</artifactId>
+    <version>3.3.0-SNAPSHOT</version>
+  </parent>
 
    <!-- Dependencies -->
-   <dependencies>
+  <dependencies>
       <!-- jBPM Dependencies -->
-      <!-- dependency>
-        <groupId>org.jboss.jbpm</groupId>
-        <artifactId>jbpm-api</artifactId>
-        <version>${version}</version>
-      </dependency-->
+    <!--
+      dependency> <groupId>org.jboss.jbpm</groupId> <artifactId>jbpm-api</artifactId> <version>${version}</version> </dependency
+    -->
 
       <!-- Compile Dependencies -->
-      <dependency>
-         <groupId>bsh</groupId>
-         <artifactId>bsh</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>commons-logging</groupId>
-         <artifactId>commons-logging</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>dom4j</groupId>
-         <artifactId>dom4j</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>javax.jcr</groupId>
-         <artifactId>jcr</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>javax.mail</groupId>
-         <artifactId>mail</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>javax.servlet</groupId>
-         <artifactId>servlet-api</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>junit</groupId>
-         <artifactId>junit</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.ant</groupId>
-         <artifactId>ant</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.jackrabbit</groupId>
-         <artifactId>jackrabbit-core</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.hibernate</groupId>
-         <artifactId>hibernate</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>dumbster</groupId>
-         <artifactId>dumbster</artifactId>
-         <scope>test</scope>
-      </dependency>
-      <dependency>
-         <groupId>hsqldb</groupId>
-         <artifactId>hsqldb</artifactId>
-         <scope>test</scope>
-      </dependency>
-      <dependency>
-         <groupId>jaxen</groupId>
-         <artifactId>jaxen</artifactId>
-         <scope>test</scope>
-      </dependency>
-      <dependency>
-         <groupId>log4j</groupId>
-         <artifactId>log4j</artifactId>
-         <scope>test</scope>
-      </dependency>
-      <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
-         <scope>test</scope>
-      </dependency>
+    <dependency>
+      <groupId>bsh</groupId>
+      <artifactId>bsh</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>dom4j</groupId>
+      <artifactId>dom4j</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>javax.jcr</groupId>
+      <artifactId>jcr</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>javax.mail</groupId>
+      <artifactId>mail</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.ant</groupId>
+      <artifactId>ant</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.jackrabbit</groupId>
+      <artifactId>jackrabbit-core</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.hibernate</groupId>
+      <artifactId>hibernate</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>dumbster</groupId>
+      <artifactId>dumbster</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>hsqldb</groupId>
+      <artifactId>hsqldb</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>jaxen</groupId>
+      <artifactId>jaxen</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <scope>test</scope>
+    </dependency>
 
       <!-- Test Dependencies -->
-   </dependencies>
+  </dependencies>
 
-   <!-- Plugins -->
-   <build>
-      <resources>
-         <resource>
-            <targetPath>/</targetPath>
-            <filtering>false</filtering>
-            <directory>${basedir}/src/main/resources</directory>
-            <excludes>
-               <exclude>hibernate.*.xml</exclude>
-            </excludes>
-         </resource>
-      </resources>
-      <plugins>
-         <plugin>
-            <artifactId>maven-assembly-plugin</artifactId>
-            <executions>
-               <execution>
-                  <phase>package</phase>
-                  <goals>
-                     <goal>single</goal>
-                  </goals>
-                  <configuration>
-                     <finalName>${project.build.finalName}</finalName>
-                     <appendAssemblyId>true</appendAssemblyId>
-                     <descriptors>
-                        <descriptor>scripts/assembly-config.xml</descriptor>
-                     </descriptors>
-                  </configuration>
-               </execution>
-            </executions>
-         </plugin>
-         <plugin>
-            <artifactId>maven-compiler-plugin</artifactId>
+  <!-- Plugins -->
+  <build>
+    <resources>
+      <resource>
+        <targetPath>/</targetPath>
+        <filtering>false</filtering>
+        <directory>${basedir}/src/main/resources</directory>
+        <excludes>
+          <exclude>hibernate.*.xml</exclude>
+        </excludes>
+      </resource>
+    </resources>
+    <plugins>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
             <configuration>
-               <showDeprecation>false</showDeprecation>
+              <finalName>${project.build.finalName}</finalName>
+              <appendAssemblyId>true</appendAssemblyId>
+              <descriptors>
+                <descriptor>scripts/assembly-config.xml</descriptor>
+              </descriptors>
             </configuration>
-         </plugin>
-         <plugin>
-            <artifactId>maven-jar-plugin</artifactId>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <showDeprecation>false</showDeprecation>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <excludes>
+            <exclude>hibernate.properties.xml</exclude>
+            <exclude>hibernate.mapping.xml</exclude>
+            <exclude>hibernate.cache.xml</exclude>
+            <exclude>jbpm.cfg.xml</exclude>
+            <exclude>jbpm.mail.templates.xml</exclude>
+          </excludes>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <excludes>
+            <exclude>org/jbpm/mail/MailTest.java</exclude>
+            <exclude>org/jbpm/mail/TaskMailTest.java</exclude>
+            <!--
+              Cleanup stale tests from the testsuite http://jira.jboss.org/jira/browse/JBPM-1205
+            -->
+            <exclude>org/jbpm/context/exe/VariableQueryDbTest.java</exclude>
+            <exclude>org/jbpm/db/ContextSessionDbTest.java</exclude>
+            <exclude>org/jbpm/DefaultConfigurationTest.java</exclude>
+            <exclude>org/jbpm/graph/def/ExceptionHandlerDbTest.java</exclude>
+            <exclude>org/jbpm/graph/def/TransitionDbTest.java</exclude>
+            <exclude>org/jbpm/graph/exe/StateDbTest.java</exclude>
+            <exclude>org/jbpm/graph/exe/SubProcessCancellationTest.java</exclude>
+            <exclude>org/jbpm/graph/exe/SuperStateActionExecutionDbTest.java
+            </exclude>
+            <exclude>org/jbpm/graph/log/NodeLogTest.java</exclude>
+            <exclude>org/jbpm/instantiation/UserCodeInterceptorTest.java</exclude>
+            <exclude>org/jbpm/JbpmDefaultConfigTest.java</exclude>
+            <exclude>org/jbpm/jcr/JcrDbTest.java</exclude>
+            <exclude>org/jbpm/job/executor/ConcurrencyTest.java</exclude>
+            <exclude>org/jbpm/job/executor/JobExecutorDbTest.java</exclude>
+            <exclude>org/jbpm/job/executor/JobLoadJoinTest.java</exclude>
+            <exclude>org/jbpm/job/executor/JobLoadSubProcessTest.java</exclude>
+            <exclude>org/jbpm/jpdl/convert/ConversionTestCase.java</exclude>
+            <exclude>org/jbpm/jpdl/xml/SchemaTest.java</exclude>
+            <exclude>org/jbpm/logging/exe/LoggingConfigDbTest.java</exclude>
+            <exclude>org/jbpm/logging/exe/LogLogTest.java</exclude>
+            <exclude>org/jbpm/mail/RealServerMailTestCase.java</exclude>
+            <exclude>org/jbpm/mock/JdbcProxyTest.java</exclude>
+            <exclude>org/jbpm/perf/PerfWithoutDbTest.java</exclude>
+            <exclude>org/jbpm/perf/StateUpdateTest.java</exclude>
+            <exclude>org/jbpm/perf/TasklistEagerLoadingTest.java</exclude>
+            <exclude>org/jbpm/perf/TaskWithVariablesTest.java</exclude>
+            <exclude>org/jbpm/persistence/db/PersistenceConfigurationTest.java
+            </exclude>
+            <exclude>org/jbpm/scheduler/exe/UnsafeSessionUsageTest.java</exclude>
+            <exclude>org/jbpm/seam/SeamPageFlowTest.java</exclude>
+          </excludes>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>generate-resources</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
             <configuration>
-               <excludes>
-                  <exclude>hibernate.properties.xml</exclude>
-                  <exclude>hibernate.mapping.xml</exclude>
-                  <exclude>hibernate.cache.xml</exclude>                  
-                  <exclude>jbpm.cfg.xml</exclude>
-                  <exclude>jbpm.mail.templates.xml</exclude>
-               </excludes>
+              <tasks>
+                <property name="database" value="${database}"/>
+                <ant antfile="scripts/antrun-jbpm-config.xml" target="concat"/>
+              </tasks>
             </configuration>
-         </plugin>
-         <plugin>
-            <artifactId>maven-surefire-plugin</artifactId>
-            <configuration>
-               <excludes>
-                  <exclude>org/jbpm/mail/MailTest.java</exclude>
-                  <exclude>org/jbpm/mail/TaskMailTest.java</exclude>
-
-                  <!--
-                    Cleanup stale tests from the testsuite
-                    http://jira.jboss.org/jira/browse/JBPM-1205
-                  -->
-                  <exclude>org/jbpm/context/exe/VariableQueryDbTest.java</exclude>
-                  <exclude>org/jbpm/db/ContextSessionDbTest.java</exclude>
-                  <exclude>org/jbpm/DefaultConfigurationTest.java</exclude>
-                  <exclude>org/jbpm/graph/def/ExceptionHandlerDbTest.java</exclude>
-                  <exclude>org/jbpm/graph/def/TransitionDbTest.java</exclude>
-                  <exclude>org/jbpm/graph/exe/StateDbTest.java</exclude>
-                  <exclude>org/jbpm/graph/exe/SubProcessCancellationTest.java</exclude>
-                  <exclude>org/jbpm/graph/exe/SuperStateActionExecutionDbTest.java</exclude>
-                  <exclude>org/jbpm/graph/log/NodeLogTest.java</exclude>
-                  <exclude>org/jbpm/instantiation/UserCodeInterceptorTest.java</exclude>
-                  <exclude>org/jbpm/JbpmDefaultConfigTest.java</exclude>
-                  <exclude>org/jbpm/jcr/JcrDbTest.java</exclude>
-                  <exclude>org/jbpm/job/executor/ConcurrencyTest.java</exclude>
-                  <exclude>org/jbpm/job/executor/JobExecutorDbTest.java</exclude>
-                  <exclude>org/jbpm/job/executor/JobLoadJoinTest.java</exclude>
-                  <exclude>org/jbpm/job/executor/JobLoadSubProcessTest.java</exclude>
-                  <exclude>org/jbpm/jpdl/convert/ConversionTestCase.java</exclude>
-                  <exclude>org/jbpm/jpdl/xml/SchemaTest.java</exclude>
-                  <exclude>org/jbpm/logging/exe/LoggingConfigDbTest.java</exclude>
-                  <exclude>org/jbpm/logging/exe/LogLogTest.java</exclude>
-                  <exclude>org/jbpm/mail/RealServerMailTestCase.java</exclude>
-                  <exclude>org/jbpm/mock/JdbcProxyTest.java</exclude>
-                  <exclude>org/jbpm/perf/PerfWithoutDbTest.java</exclude>
-                  <exclude>org/jbpm/perf/StateUpdateTest.java</exclude>
-                  <exclude>org/jbpm/perf/TasklistEagerLoadingTest.java</exclude>
-                  <exclude>org/jbpm/perf/TaskWithVariablesTest.java</exclude>
-                  <exclude>org/jbpm/persistence/db/PersistenceConfigurationTest.java</exclude>
-                  <exclude>org/jbpm/scheduler/exe/UnsafeSessionUsageTest.java</exclude>
-                  <exclude>org/jbpm/seam/SeamPageFlowTest.java</exclude>
-               </excludes>
-            </configuration>
-         </plugin>
-
-         <plugin>
-            <artifactId>maven-antrun-plugin</artifactId>
-            <executions>
-               <execution>
-                  <phase>generate-resources</phase>
-                  <goals>
-                     <goal>run</goal>
-                  </goals>
-                  <configuration>
-                     <tasks>
-                        <ant antfile="scripts/antrun-jbpm-config.xml"/>
-                     </tasks>
-                  </configuration>
-               </execution>
-            </executions>
-         </plugin>
-      </plugins>
-   </build>
-</project>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  
+  <!-- Profiles -->
+  <profiles>
+  
+    <!-- 
+    Name:  no-database
+    Descr: Setup the default database   
+    -->
+    <profile>
+      <id>no-database</id>
+      <activation>
+        <property>
+          <name>!database</name>
+        </property>
+      </activation>
+      <properties>
+        <database>hsqldb</database>
+      </properties>
+    </profile>
+  </profiles>
+</project>
\ No newline at end of file

Modified: jbpm3/trunk/modules/jpdl/core/scripts/antrun-jbpm-config.xml
===================================================================
--- jbpm3/trunk/modules/jpdl/core/scripts/antrun-jbpm-config.xml	2008-08-27 10:15:00 UTC (rev 2030)
+++ jbpm3/trunk/modules/jpdl/core/scripts/antrun-jbpm-config.xml	2008-08-27 12:11:27 UTC (rev 2031)
@@ -11,50 +11,39 @@
 
 <!-- $Id$ -->
 
-<project default="main">
-
-  <property name="project.resources.directory" value="${basedir}/src/main/resources"/>
+<project default="concat">
   <property name="project.build.directory" value="${basedir}/target"/>
-  <property name="project.build.resources.directory" value="${project.build.directory}/resources"/>
-  <property name="project.build.classes.directory" value="${project.build.directory}/classes"/>
+  <property name="project.resources.directory" value="${basedir}/src/main/resources"/>
 
-  <property name="thirdparty.dir" value="${project.build.directory}/thirdparty"/>
+  <!-- Concat hibernate.cfg.xml -->
+  <target name="concat">
 
-  <!-- ================================================================== -->
-  <!-- Initialization                                                     -->
-  <!-- ================================================================== -->
+    <property name="hibernate.properties.xml" value="hibernate.properties.${database}.xml"/>
+    <available property="database.properties.available" file="${project.resources.directory}/${hibernate.properties.xml}"/>
+    <fail message="${hibernate.properties.xml} not available" unless="database.properties.available"/>
+    
+    <echo/>
+    <echo message="Concat hibernate.cfg.xml using ${hibernate.properties.xml}" />
+    <echo/>
+    
+    <concat destfile="${project.build.directory}/classes/hibernate.cfg.xml">
+      <header trimleading="yes"><![CDATA[<?xml version='1.0' encoding='utf-8'?>
 
-  <target name="init">
-  </target>
+<!DOCTYPE hibernate-configuration PUBLIC 
+  "-//Hibernate/Hibernate Configuration DTD 3.0//EN" 
+  "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
 
-  <!-- Compile resource files -->
-  <target name="main" depends="init">
-
-     <!-- Concat hibernate.cfg.xml -->
-     <echo>==================</echo>
-     <echo message="Concat ${project.build.classes.directory}/hibernate.cfg.xml"/>
-     <echo>==================</echo>
-     
-     <concat destfile="${project.build.classes.directory}/hibernate.cfg.xml">
-        <header trimleading="yes">&lt;?xml version='1.0' encoding='utf-8'?&gt;
-
-           &lt;!DOCTYPE hibernate-configuration PUBLIC
-            "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
-            "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;
-
-           &lt;hibernate-configuration&gt;
-             &lt;session-factory&gt;
-           </header>
-        <!--fileset file="${project.build.resources.directory}/jbpm-jpdl-core/hibernate.cfg.xml"/-->
-        <fileset file="${project.resources.directory}/hibernate.properties.xml"/>
-        <fileset file="${project.resources.directory}/hibernate.mapping.xml"/>
-        <fileset file="${project.resources.directory}/hibernate.cache.xml"/>
-        <footer trimleading="yes">
-             &lt;/session-factory&gt;
-           &lt;/hibernate-configuration&gt;
-        </footer>
-     </concat>
-
+<hibernate-configuration>
+  <session-factory>
+  ]]></header>
+      <fileset file="${project.resources.directory}/${hibernate.properties.xml}" />
+      <fileset file="${project.resources.directory}/hibernate.mapping.xml" />
+      <fileset file="${project.resources.directory}/hibernate.cache.xml" />
+      <footer trimleading="yes"><![CDATA[
+  </session-factory>
+</hibernate-configuration>
+  ]]></footer>
+    </concat>
+    
   </target>
-
-</project>
+</project>
\ No newline at end of file

Modified: jbpm3/trunk/modules/jpdl/core/scripts/assembly-config.xml
===================================================================
--- jbpm3/trunk/modules/jpdl/core/scripts/assembly-config.xml	2008-08-27 10:15:00 UTC (rev 2030)
+++ jbpm3/trunk/modules/jpdl/core/scripts/assembly-config.xml	2008-08-27 12:11:27 UTC (rev 2031)
@@ -1,28 +1,28 @@
 <assembly 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/xsd/assembly-1.1.0-SNAPSHOT.xsd">
-   <id>config</id>
-   <formats>
-      <format>jar</format>
-   </formats>
-   <includeBaseDirectory>false</includeBaseDirectory>
-   <fileSets>
-      <fileSet>
-         <directory>src/main/resources</directory>
-         <outputDirectory>/</outputDirectory>
-         <includes>
-            <include>hibernate.properties.xml</include>
-            <include>hibernate.mapping.xml</include>
-            <include>hibernate.cache.xml</include>
-            <include>jbpm.cfg.xml</include>
-            <include>jbpm.mail.templates.xml</include>
-         </includes>
-      </fileSet>
-      <fileSet>
-         <directory>src/test/resources</directory>
-         <outputDirectory>/</outputDirectory>
-         <includes>
-            <include>log4j.xml</include>
-         </includes>
-      </fileSet>
-   </fileSets>
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd">
+  <id>config</id>
+  <formats>
+    <format>jar</format>
+  </formats>
+  <includeBaseDirectory>false</includeBaseDirectory>
+  <fileSets>
+    <fileSet>
+      <directory>src/main/resources</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>hibernate.properties.xml</include>
+        <include>hibernate.mapping.xml</include>
+        <include>hibernate.cache.xml</include>
+        <include>jbpm.cfg.xml</include>
+        <include>jbpm.mail.templates.xml</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <directory>src/test/resources</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>log4j.xml</include>
+      </includes>
+    </fileSet>
+  </fileSets>
 </assembly>
\ No newline at end of file

Added: jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.hsqldb.xml
===================================================================
--- jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.hsqldb.xml	                        (rev 0)
+++ jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.hsqldb.xml	2008-08-27 12:11:27 UTC (rev 2031)
@@ -0,0 +1,34 @@
+
+    <!-- hibernate dialect -->
+    <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+
+    <!-- JDBC connection properties (begin) -->
+    <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+    <property name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
+    <property name="hibernate.connection.username">sa</property>
+    <property name="hibernate.connection.password"></property>
+    <!-- JDBC connection properties (end) -->
+
+    <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
+
+    <property name="hibernate.hbm2ddl.auto">create</property>
+
+     <!-- DataSource properties 
+     <property name="hibernate.connection.datasource">java:comp/env/jdbc/JbpmDataSource</property>
+     -->
+
+    <!-- JTA transaction properties
+    <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+    <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+    -->
+
+    <!-- CMT transaction properties 
+    <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
+    <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+    -->
+
+    <!-- logging properties 
+    <property name="hibernate.show_sql">true</property>
+    <property name="hibernate.format_sql">true</property>
+    <property name="hibernate.use_sql_comments">true</property>
+    -->
\ No newline at end of file


Property changes on: jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.hsqldb.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.mysql.xml
===================================================================
--- jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.mysql.xml	                        (rev 0)
+++ jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.mysql.xml	2008-08-27 12:11:27 UTC (rev 2031)
@@ -0,0 +1,14 @@
+
+    <!-- hibernate dialect -->
+    <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
+
+    <!-- JDBC connection properties (begin) -->
+    <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
+    <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/jbpmtest</property>
+    <property name="hibernate.connection.username">username</property>
+    <property name="hibernate.connection.password">password</property>
+    <property name="hibernate.query.substitutions">true 1, false 0</property>
+
+    <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
+
+    <property name="hibernate.hbm2ddl.auto">create</property>


Property changes on: jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.mysql.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Deleted: jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.xml
===================================================================
--- jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.xml	2008-08-27 10:15:00 UTC (rev 2030)
+++ jbpm3/trunk/modules/jpdl/core/src/main/resources/hibernate.properties.xml	2008-08-27 12:11:27 UTC (rev 2031)
@@ -1,38 +0,0 @@
-<!--
-   ==================================================================================
-   START org.jboss.jbpm:jbpm-jpdl-core src/main/resources/hibernate.cfg.xml
-   ==================================================================================
--->
-    <!-- hibernate dialect -->
-    <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
-
-    <!-- JDBC connection properties (begin) -->
-    <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
-    <property name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
-    <property name="hibernate.connection.username">sa</property>
-    <property name="hibernate.connection.password"></property>
-    <!-- JDBC connection properties (end) -->
-
-    <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
-
-    <property name="hibernate.hbm2ddl.auto">create</property>
-
-     <!-- DataSource properties (begin) ===
-     <property name="hibernate.connection.datasource">java:comp/env/jdbc/JbpmDataSource</property>
-     ==== DataSource properties (end) -->
-
-    <!-- JTA transaction properties (begin) ===
-    <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
-    <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
-    ==== JTA transaction properties (end) -->
-
-    <!-- CMT transaction properties (begin) ===
-    <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
-    <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
-    ==== CMT transaction properties (end) -->
-
-    <!-- logging properties (begin) ===
-    <property name="hibernate.show_sql">true</property>
-    <property name="hibernate.format_sql">true</property>
-    <property name="hibernate.use_sql_comments">true</property>
-    ==== logging properties (end) -->
\ No newline at end of file




More information about the jbpm-commits mailing list