build.xml
changeset 5624 9f8fa491a5ff
parent 5618 277ab38775ac
parent 5560 6e5933614ddd
child 5626 157ab610f340
--- a/build.xml	Fri Dec 04 11:41:15 2009 +0100
+++ b/build.xml	Fri Dec 04 11:52:51 2009 +0100
@@ -739,8 +739,17 @@
     <taskdef name="validateModules" classname="org.openbravo.service.system.SystemValidationTask">
       <classpath refid="project.class.path" />
     </taskdef>
+    
+    <taskdef name="WADValidation" classname="org.openbravo.wad.validation.WADValidatorTask">
+      <classpath refid="project.class.path" />
+    </taskdef>
+            
+    <echo message="Validating Module..." />
+    
+    <WADValidation propertiesFile="${base.config}/Openbravo.properties"
+                   modules="${module}"
+                   stoponerror="true"/>
 
-    <echo message="Validating Module..." />
     <validateModules moduleJavaPackage="${module}" failOnError="false" userId="0" adminMode="true" propertiesFile="${base.config}/Openbravo.properties" type="module" />
 
     <antcall target="obx.export.database" />
@@ -877,4 +886,8 @@
   <target name="load.logoimages">
     <ant dir="${base.src}" target="load.logoimages" inheritAll="true" inheritRefs="true" />
   </target>
+  
+  <target name="validate.wad">
+    <ant dir="${base.src}" target="wadvalidation" inheritAll="true" inheritRefs="true" />
+  </target>
 </project>