db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r375127 - /db/ddlutils/trunk/dump-metadata.xml
Date Sun, 05 Feb 2006 23:06:51 GMT
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>



Mime
View raw message