build.xml
changeset 16641 886177e54298
parent 16554 9d97cd717801
child 16693 b87d6a90f2db
--- a/build.xml	Tue May 22 14:14:35 2012 +0200
+++ b/build.xml	Thu May 17 10:12:41 2012 +0200
@@ -1140,6 +1140,23 @@
       <ant dir="${base.src.core}" target="clean" inheritAll="true" inheritRefs="true" />
       <ant dir="${base.src.trl}" target="clean" inheritAll="true" inheritRefs="true" />
       <ant dir="${base.src.wad}" target="clean" inheritAll="true" inheritRefs="true" />
-    </target>
+  </target>
+  
+  <target name="activate.instance" depends="init"
+          description="Activates the instance with the provided public key">
+   <taskdef name="activateInstace" classname="org.openbravo.erpCommon.obps.ActivationTask">
+     <classpath refid="project.class.path" />
+   </taskdef>
+   <property name="purpose" value="" />
+   <property name="publicKey" value="" />
+   <property name="publicKeyFile" value="" />
+    
+   <activateInstace purpose="${purpose}"
+                    publicKey="${publicKey}"
+                    publicKeyFile="${publicKeyFile}"
+                    userId="0" 
+                    adminMode="true" 
+                    propertiesFile="${base.config}/Openbravo.properties"/>
+  </target>
   
 </project>