build.xml
changeset 3808 30cce2fd1ddd
parent 3794 0ace4de08524
child 3810 6b58bb0503f9
--- a/build.xml	Tue May 05 15:34:28 2009 +0200
+++ b/build.xml	Tue May 05 16:12:37 2009 +0200
@@ -389,6 +389,22 @@
   <target name="run.javascript.tests">
     <ant dir="${base.src}" target="run.javascript.tests" inheritAll="true" inheritRefs="true" />
   </target>
+  
+  <target name="run.api.test.model" 
+          description="Checks current xml db model and dictionary API for not-allowed changes. Requires stableDBdir parameter">
+    <taskdef name="checkAPI" classname="org.openbravo.ddlutils.task.CheckAPI">
+      <classpath refid="project.class.path" />
+    </taskdef>
+    <checkAPI driver="${bbdd.driver}" 
+                  url="${bbdd.owner.url}" 
+                  user="${bbdd.user}" 
+                  password="${bbdd.password}" 
+                  stableDBdir="${stableDBdir}"
+                  testDBdir="${base.src.db}/database"
+                  verbosity="${bbdd.verbosity}"
+                  userId="0" 
+                  propertiesFile="${base.config}/Openbravo.properties"/>    
+  </target>
 
   <target name="export.sample.data" depends="code.rev">
     <ant dir="${base.src}" target="export.sample.data" inheritAll="true" inheritRefs="true" />