[quickbuild] deploy in quick build
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 05 Feb 2009 16:07:38 +0000
changeset 2982 a0858cc817bf
parent 2981 0a16908ccd34
child 2983 3d54ba4b7621
[quickbuild] deploy in quick build
build.xml
--- a/build.xml	Thu Feb 05 15:54:49 2009 +0000
+++ b/build.xml	Thu Feb 05 16:07:38 2009 +0000
@@ -227,13 +227,29 @@
     <antcall target="update.database" />
 
     <ant dir="${base.src}" target="build.quick" inheritAll="true" inheritRefs="true" />
-
+    
+    <antcall target="build.deploy"/>
     <!-- only restart tomcat if the restart prop was set to true -->
     <condition property="dorestart">
       <istrue value="${restart}" />
     </condition>
     <antcall target="if.restart.tomcat" />
   </target>
+    
+  <target name="build.deploy">
+    <antcall target="build.deploy.war"/>
+    <antcall target="build.deploy.class"/>
+  </target>
+    
+  <target name="build.deploy.class" if="mode.class">
+    <ant dir="${base.src}" target="copy.files" inheritAll="true" inheritRefs="true" />
+    <mkdir dir="${jakarta.base}/webapps/${context.name}/WEB-INF/lib" />
+    <copy todir="${jakarta.base}/webapps/${context.name}/WEB-INF/lib" file="${build.core.lib}/openbravo-core.jar" encoding="UTF-8"/>
+  </target>
+    
+  <target name="build.deploy.war" if="mode.war">
+    <antcall target="war"/>
+  </target>
 
   <target name="if.restart.tomcat" if="dorestart">
     <antcall target="tomcat.restart" />