build.xml
changeset 3841 0958b4ae7fe5
parent 3825 236c2b6af349
child 3868 ff43c7c0a97b
equal deleted inserted replaced
3840:80bcdfbac81a 3841:0958b4ae7fe5
   101   <property name="obx.export.CS" value="false" />
   101   <property name="obx.export.CS" value="false" />
   102   <property name="chekPerms" value="false" />
   102   <property name="chekPerms" value="false" />
   103   <property name="force" value="false" />
   103   <property name="force" value="false" />
   104   <property name="local" value="true" />
   104   <property name="local" value="true" />
   105 
   105 
   106   <available file=".svn/entries" property="is.svn" />
   106   <available file=".hg" property="is.hg" />
   107 
       
   108 
       
   109 
       
   110 
   107 
   111 
   108 
   112   <condition property="deploy.mode" value="class">
   109   <condition property="deploy.mode" value="class">
   113     <not>
   110     <not>
   114       <isset property="${deploy.mode}" />
   111       <isset property="${deploy.mode}" />
   204   <target name="init">
   201   <target name="init">
   205     <fail if="no.java.home" message="The environment variable JAVA_HOME is not set." />
   202     <fail if="no.java.home" message="The environment variable JAVA_HOME is not set." />
   206   </target>
   203   </target>
   207 
   204 
   208   <target name="code.rev" depends="set.code.rev">
   205   <target name="code.rev" depends="set.code.rev">
   209     <condition property="code.revision" value="${svn.entries}" else="0">
   206     <condition property="code.revision" value="${hg.id}" else="0">
   210       <isset property="svn.entries" />
   207       <isset property="hg.id" />
   211     </condition>
   208     </condition>
   212   </target>
   209   </target>
   213 
   210 
   214   <target name="set.code.rev" if="is.svn">
   211   <target name="set.code.rev" if="is.hg">
   215     <loadfile property="svn.entries" srcFile=".svn/entries" failonerror="false">
   212     <exec executable="hg" outputproperty="hg.id" failifexecutionfails="false">
   216       <filterchain>
   213       <arg value="id"/>
   217         <filterreader classname="org.apache.tools.ant.filters.HeadFilter">
   214       <arg value="-i"/>
   218           <param name="skip" value="3" />
   215     </exec>
   219           <param name="lines" value="1" />
       
   220         </filterreader>
       
   221       </filterchain>
       
   222       <filterchain>
       
   223         <filterreader classname="org.apache.tools.ant.filters.StripLineBreaks" />
       
   224       </filterchain>
       
   225     </loadfile>
       
   226   </target>
   216   </target>
   227 
   217 
   228   <target name="compile.complete" depends="init">
   218   <target name="compile.complete" depends="init">
   229     <ant dir="${base.src}" target="compile.complete" inheritAll="true" inheritRefs="true" />
   219     <ant dir="${base.src}" target="compile.complete" inheritAll="true" inheritRefs="true" />
   230   </target>
   220   </target>