db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r995642 - /db/torque/torque4/trunk/torque-test/pom.xml
Date Fri, 10 Sep 2010 02:25:37 GMT
Author: tfischer
Date: Fri Sep 10 02:25:37 2010
New Revision: 995642

URL: http://svn.apache.org/viewvc?rev=995642&view=rev
Log:
added creation of createdb sql scripts and execution of jdbc2schema

Modified:
    db/torque/torque4/trunk/torque-test/pom.xml

Modified: db/torque/torque4/trunk/torque-test/pom.xml
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/pom.xml?rev=995642&r1=995641&r2=995642&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/pom.xml (original)
+++ db/torque/torque4/trunk/torque-test/pom.xml Fri Sep 10 02:25:37 2010
@@ -186,6 +186,28 @@
             </configuration>
           </execution>
           <execution>
+            <id>generate-createdb-sql</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>generate</goal>
+            </goals>
+            <configuration>
+              <packaging>classpath</packaging>
+              <configPackage>org.apache.torque.templates.sql.createdb</configPackage>
+              <sourceDir>target/torque/test/schema</sourceDir>
+              <newFileTargetDir>target/generated-createdb-sql</newFileTargetDir>
+              <newFileTargetDirUsage>none</newFileTargetDirUsage>
+              <loglevel>info</loglevel>
+              <sourceExcludes>
+                <sourceExclude>ext*-schema.xml</sourceExclude>
+                <sourceExclude>id-table-schema.xml</sourceExclude>
+              </sourceExcludes>
+              <options>
+                <torque.database>${torque.targetDatabase}</torque.database>
+              </options>
+            </configuration>
+          </execution>
+          <execution>
             <id>generate-idtable-sql</id>
             <phase>generate-sources</phase>
             <goals>
@@ -222,6 +244,26 @@
             </configuration>
           </execution>
           <execution>
+            <id>generate-schema-from-jdbc</id>
+            <phase>generate-test-sources</phase>
+            <goals>
+              <goal>generate</goal>
+            </goals>
+            <configuration>
+              <packaging>classpath</packaging>
+              <configPackage>org.apache.torque.templates.jdbc2schema</configPackage>
+              <newFileTargetDir>target/generated-schema</newFileTargetDir>
+              <newFileTargetDirUsage>none</newFileTargetDirUsage>
+              <loglevel>info</loglevel>
+              <options>
+                <torque.jdbc2schema.driver>${torque.driver}</torque.jdbc2schema.driver>
+                <torque.jdbc2schema.url>${torque.database.url}</torque.jdbc2schema.url>
+                <torque.jdbc2schema.user>${torque.database.user}</torque.jdbc2schema.user>
+                <torque.jdbc2schema.password>${torque.database.password}</torque.jdbc2schema.password>
+              </options>
+            </configuration>
+          </execution>
+          <execution>
             <id>generate-xdoc</id>
             <phase>pre-site</phase>
             <goals>
@@ -246,6 +288,12 @@
             <artifactId>torque-templates</artifactId>
             <version>${project.version}</version>
           </dependency>
+          <dependency>
+            <!-- for jdbc2schema only -->
+            <groupId>${torque.test.driver.groupId}</groupId>
+            <artifactId>${torque.test.driver.artifactId}</artifactId>
+            <version>${torque.test.driver.version}</version>
+          </dependency>
         </dependencies>
       </plugin>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message