db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1627179 - /db/torque/torque4/trunk/torque-test/pom.xml
Date Tue, 23 Sep 2014 23:53:31 GMT
Author: tfischer
Date: Tue Sep 23 23:53:31 2014
New Revision: 1627179

URL: http://svn.apache.org/r1627179
Log:
TORQUE-278 do not create or drop tables in an external schema

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=1627179&r1=1627178&r2=1627179&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/pom.xml (original)
+++ db/torque/torque4/trunk/torque-test/pom.xml Tue Sep 23 23:53:31 2014
@@ -222,7 +222,6 @@
               <defaultOutputDirUsage>none</defaultOutputDirUsage>
               <loglevel>info</loglevel>
               <sourceExcludes>
-                <sourceExclude>ext*-schema.xml</sourceExclude>
                 <sourceExclude>included*-schema.xml</sourceExclude>
               </sourceExcludes>
               <options>
@@ -360,6 +359,36 @@
         <version>1.4</version>
         <executions>
           <execution>
+            <id>execute-ext-ddl</id>
+            <phase>process-classes</phase>
+            <goals>
+              <goal>execute</goal>
+            </goals>
+            <configuration>
+              <driver>${torque.driver}</driver>
+              <url>${torque.database.url}</url>
+              <username>${torque.database.user}</username>
+              <password>${torque.database.password}</password>
+              <onError>${onSqlError}</onError>
+              <autocommit>true</autocommit>
+              <printResultSet>true</printResultSet>
+              <orderFile>descending</orderFile>
+              <!-- if drop is executed it is assumed that external tables already exist
+                so we do not need to drop and recreate them 
+                (which avoids dependency problems) -->
+              <skip>${executeDrop}</skip>
+              <fileset>
+                <basedir>${basedir}/target/generated-sql</basedir>
+                <includes>
+                  <include>ext*.sql</include>
+                </includes>
+                <excludes>
+                  <exclude>*idtable-init.sql</exclude>
+                </excludes>
+              </fileset>
+            </configuration>
+          </execution>
+          <execution>
             <id>execute-ddl</id>
             <phase>process-classes</phase>
             <goals>
@@ -380,6 +409,7 @@
                 </includes>
                 <excludes>
                   <exclude>*idtable-init.sql</exclude>
+                  <exclude>ext*.sql</exclude>
                 </excludes>
               </fileset>
             </configuration>



---------------------------------------------------------------------
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