build.xml
changeset 3008 7594f5926e99
parent 2996 d3cb8943cc47
child 3013 ed74f45c36dd
equal deleted inserted replaced
3007:cff0a18c0a88 3008:7594f5926e99
    97   <property name="obx.export.RD" value="false" />
    97   <property name="obx.export.RD" value="false" />
    98   <property name="obx.export.DB" value="false" />
    98   <property name="obx.export.DB" value="false" />
    99   <property name="obx.export.CS" value="false" />
    99   <property name="obx.export.CS" value="false" />
   100   <property name="chekPerms" value="false" />
   100   <property name="chekPerms" value="false" />
   101   <property name="force" value="false" />
   101   <property name="force" value="false" />
       
   102   <property name="local" value="true" />
   102 
   103 
   103   <available file=".svn/entries" property="is.svn" />
   104   <available file=".svn/entries" property="is.svn" />
   104 
   105 
   105   <checksum file="${base.src.wad}/lib/openbravo-wad.jar" algorithm="MD5" property="test.md5.wad" />
   106   <checksum file="${base.src.wad}/lib/openbravo-wad.jar" algorithm="MD5" property="test.md5.wad" />
   106 
   107 
   226   </target>
   227   </target>
   227 
   228 
   228   <target name="build.quick" depends="init">
   229   <target name="build.quick" depends="init">
   229     <property name="quick.mode" value="true"/>
   230     <property name="quick.mode" value="true"/>
   230     <property name="onlyIfModified" value="true" />
   231     <property name="onlyIfModified" value="true" />
   231     <antcall target="update.database" />
   232     <condition property="no.local">
       
   233       <not>
       
   234         <istrue value="${local}"/>
       
   235       </not>
       
   236     </condition>
       
   237     <antcall target="update.database.if.no.local" />
   232 
   238 
   233     <ant dir="${base.src}" target="build.quick" inheritAll="true" inheritRefs="true" />
   239     <ant dir="${base.src}" target="build.quick" inheritAll="true" inheritRefs="true" />
   234     
   240     
   235     <antcall target="build.deploy"/>
   241     <antcall target="build.deploy"/>
   236     <!-- only restart tomcat if the restart prop was set to true -->
   242     <!-- only restart tomcat if the restart prop was set to true -->
   237     <condition property="dorestart">
   243     <condition property="dorestart">
   238       <istrue value="${restart}" />
   244       <istrue value="${restart}" />
   239     </condition>
   245     </condition>
   240     <antcall target="if.restart.tomcat" />
   246     <antcall target="if.restart.tomcat" />
       
   247   </target>
       
   248   
       
   249   <target name="update.database.if.no.local" if="no.local">
       
   250     <antcall target="update.database" />
   241   </target>
   251   </target>
   242 
   252 
   243   <target name="build.deploy">
   253   <target name="build.deploy">
   244     <antcall target="build.deploy.war"/>
   254     <antcall target="build.deploy.war"/>
   245     <antcall target="build.deploy.class"/>
   255     <antcall target="build.deploy.class"/>