You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2014/09/24 01:53:31 UTC

svn commit: r1627179 - /db/torque/torque4/trunk/torque-test/pom.xml

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