You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by to...@apache.org on 2006/02/06 00:06:51 UTC

svn commit: r375127 - /db/ddlutils/trunk/dump-metadata.xml

Author: tomdz
Date: Sun Feb  5 15:06:50 2006
New Revision: 375127

URL: http://svn.apache.org/viewcvs?rev=375127&view=rev
Log:
Added target to dump a schema

Modified:
    db/ddlutils/trunk/dump-metadata.xml

Modified: db/ddlutils/trunk/dump-metadata.xml
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/dump-metadata.xml?rev=375127&r1=375126&r2=375127&view=diff
==============================================================================
--- db/ddlutils/trunk/dump-metadata.xml (original)
+++ db/ddlutils/trunk/dump-metadata.xml Sun Feb  5 15:06:50 2006
@@ -50,6 +50,9 @@
   <taskdef classname="org.apache.ddlutils.task.DumpMetadataTask"
            name="dumpMetadata"
            classpathref="project-classpath" />
+  <taskdef classname="org.apache.ddlutils.task.DatabaseToDdlTask"
+           name="databaseToDdl"
+           classpathref="project-classpath" />
 	
   <target name="dump-metadata"
           description="Dumps the metadata using the connection properties from the file specified via the jdbc.properties.file environment variable">
@@ -67,5 +70,18 @@
                 username="${datasource.username}"
                 password="${datasource.password}"/> 
     </dumpMetadata> 
-  </target> 
+  </target>
+  <target name="dump-model"
+          description="Dumps the database model using the connection properties from the file specified via the jdbc.properties.file environment variable">
+    <databaseToDdl databasetype="${ddlutils.platform}"
+                   tabletypes="${tabletypes}"
+                   catalog="${catalogpattern}"
+                   schema="${schemapattern}">
+      <database driverclassname="${datasource.driverClassName}"
+                url="${datasource.url}"
+                username="${datasource.username}"
+                password="${datasource.password}"/> 
+      <writeschematofile outputfile="${outputfile}"/> 
+    </databaseToDdl> 
+  </target>
 </project>