build.xml
changeset 19939 347ce63c377b
parent 19242 cdc18afeeefd
child 20003 affe31812cc0
--- a/build.xml	Tue Mar 19 21:15:46 2013 +0100
+++ b/build.xml	Wed Mar 20 11:18:53 2013 +0530
@@ -346,6 +346,16 @@
        </sql>
      </sequential>
   </macrodef>
+
+  <macrodef name="createAuditTriggers">
+     <sequential>
+       <sql driver="${bbdd.driver}" url="${bbdd.owner.url}" userid="${bbdd.user}" password="${bbdd.password}" onerror="abort" autocommit="true" print="yes">
+         <classpath> <fileset dir="${base.lib}"> <include name="**/*.jar"> </include> </fileset> </classpath>
+         <transaction> SELECT ad_create_audit_triggers(null);
+         </transaction>
+       </sql>
+     </sequential>
+  </macrodef>
   
   <taskdef resource="axis-tasks.properties" classpathref="project.class.path" />
   
@@ -1192,5 +1202,9 @@
                     adminMode="true" 
                     propertiesFile="${base.config}/Openbravo.properties"/>
   </target>
+
+  <target name="update.audit.trail.infrastructure">
+    <createAuditTriggers/>
+  </target>
   
 </project>