new: New ant task export.database.structure for Oracle
authorAdrián Romero <adrian.romero@openbravo.com>
Tue, 20 Nov 2007 17:14:35 +0000
changeset 97 475d8f3f48e1
parent 96 a9c5fe3b3105
child 98 8e1fa3bfbf21
new: New ant task export.database.structure for Oracle
build.xml
database/build.xml
--- a/build.xml	Tue Nov 20 17:04:33 2007 +0000
+++ b/build.xml	Tue Nov 20 17:14:35 2007 +0000
@@ -249,6 +249,10 @@
     <target name="update.database.script">
         <ant dir="${base.subversion}/database" target="update.database.script" inheritAll="true" inheritRefs="true"/>   
    </target>
+
+    <target name="export.database.structure">
+        <ant dir="${base.subversion}/database" target="export.database.structure" inheritAll="true" inheritRefs="true"/>
+    </target>
     
     <target name="export.database.data">
         <ant dir="${base.subversion}/database" target="export.database.data" inheritAll="true" inheritRefs="true"/>
--- a/database/build.xml	Tue Nov 20 17:04:33 2007 +0000
+++ b/database/build.xml	Tue Nov 20 17:14:35 2007 +0000
@@ -49,6 +49,10 @@
            classname="org.openbravo.ddlutils.task.AlterXML2SQL">
     <classpath refid="runtime-classpath" />
   </taskdef>
+  <taskdef name="exportdatabase"
+           classname="org.openbravo.ddlutils.task.ExportDatabase">
+    <classpath refid="runtime-classpath" />
+  </taskdef>
   <taskdef name="importdata"
            classname="org.openbravo.ddlutils.task.ImportDataXML">
     <classpath refid="runtime-classpath" />
@@ -282,6 +286,15 @@
                       verbosity="${bbdd.verbosity}" />
   </target>
 
+    <target name="export.database.structure">
+        <exportdatabase driver="${bbdd.driver}"
+                        url="${bbdd.owner.url}"
+                        user="${bbdd.user}"
+                        password="${bbdd.password}"
+                        model="model"
+                        verbosity="${bbdd.verbosity}" />
+    </target>
+
   <target name="import.database.data">
       <importdata driver="${bbdd.driver}"
                   url="${bbdd.owner.url}"