[jbpm-commits] JBoss JBPM SVN: r4615 - jbpm4/branches/tbaeyens/modules/db/scripts.
do-not-reply at jboss.org
do-not-reply at jboss.org
Fri Apr 24 11:52:40 EDT 2009
Author: tom.baeyens at jboss.com
Date: 2009-04-24 11:52:40 -0400 (Fri, 24 Apr 2009)
New Revision: 4615
Added:
jbpm4/branches/tbaeyens/modules/db/scripts/antrun-schema.xml
Log:
adding database schema creation
Copied: jbpm4/branches/tbaeyens/modules/db/scripts/antrun-schema.xml (from rev 4603, jbpm4/branches/tbaeyens/modules/db/src/main/ant/build.schema.xml)
===================================================================
--- jbpm4/branches/tbaeyens/modules/db/scripts/antrun-schema.xml (rev 0)
+++ jbpm4/branches/tbaeyens/modules/db/scripts/antrun-schema.xml 2009-04-24 15:52:40 UTC (rev 4615)
@@ -0,0 +1,73 @@
+<?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. -->
+<!-- ============================================================ -->
+
+<!-- $Id: antrun-jbpmschema.xml 2999 2008-11-19 16:16:01Z thomas.diesler at jboss.com $ -->
+
+<project>
+
+ <!-- ================================================================== -->
+ <!-- jBPM Database schema -->
+ <!-- ================================================================== -->
+
+ <target name="create-schema">
+ <echo message="${maven.runtime.classpath}"/>
+
+ <taskdef name="schemaexport"
+ classname="org.hibernate.tool.hbm2ddl.SchemaExportTask">
+ <classpath path="${maven.runtime.classpath}"/>
+ </taskdef>
+
+ <mkdir dir="target"/>
+
+ <!-- HsqlDB -->
+ <create-ddl db="hsqldb"/>
+
+ <!-- MySQL -->
+ <create-ddl db="mysql"/>
+ <!--TODO: https://jira.jboss.org/jira/browse/JBPM-2071 -->
+ <replace file="target/jbpm.mysql.create.sql" token="BLOB_VALUE_ blob" value="BLOB_VALUE_ longblob" />
+
+ <!-- Oracle -->
+ <create-ddl db="oracle"/>
+
+ <!-- PostgreSQL -->
+ <create-ddl db="postgresql"/>
+
+ </target>
+
+ <!--
+ ============================================
+ Macro defs, no need to change anything below
+ ============================================
+ -->
+
+ <macrodef name="create-ddl">
+ <attribute name="db"/>
+
+ <sequential>
+ <echo></echo>
+ <echo>=====================</echo>
+ <echo>Create DDL @{db}</echo>
+
+ <schemaexport output="target/jbpm.@{db}.create.sql"
+ create="yes" drop="no"
+ config="src/main/config/@{db}.hibernate.cfg.xml"
+ text="yes" delimiter=";"
+ quiet="yes"/>
+ <schemaexport output="target/jbpm.@{db}.drop.sql"
+ create="no" drop="yes"
+ config="src/main/config/@{db}.hibernate.cfg.xml"
+ text="yes" delimiter=";"
+ quiet="yes"/>
+
+ <echo>Done.</echo>
+ <echo>=====================</echo>
+ </sequential>
+ </macrodef>
+
+</project>
More information about the jbpm-commits
mailing list