build.xml
changeset 4278 08f71f5da899
parent 4277 cf3dac4adfe7
child 4279 959b1cd36773
equal deleted inserted replaced
4277:cf3dac4adfe7 4278:08f71f5da899
   843     <get src="https://dev.openbravo.com/svn/packaging/setup/output/setup-properties-${osname}${osarch}.${bin.ext}" dest="config/setup-properties-${osname}${osarch}.${bin.ext}" verbose="true" />
   843     <get src="https://dev.openbravo.com/svn/packaging/setup/output/setup-properties-${osname}${osarch}.${bin.ext}" dest="config/setup-properties-${osname}${osarch}.${bin.ext}" verbose="true" />
   844 
   844 
   845     <chmod file="config/setup-properties-${osname}${osarch}.${bin.ext}" perm="+x" />
   845     <chmod file="config/setup-properties-${osname}${osarch}.${bin.ext}" perm="+x" />
   846   </target>
   846   </target>
   847 
   847 
       
   848   <target name="package.core">
       
   849     <exec executable="hg" outputproperty="hg.idno" failifexecutionfails="false">
       
   850       <arg value="id"/>
       
   851       <arg value="-n"/>
       
   852     </exec>
       
   853     
       
   854     <taskdef name="CoreRevision" classname="org.openbravo.erpCommon.utility.CalculateCoreRevision">
       
   855         <classpath refid="project.class.path" />
       
   856       </taskdef>
       
   857 
       
   858     <CoreRevision hgRevNo="${hg.idno}" revision="core.rev"/>
       
   859     
       
   860 	<property name="tmpdir" value="${java.io.tmpdir}/ob.core${core.rev}" />
       
   861    
       
   862   	<exec executable="hg" >
       
   863   		<arg value="archive"/>
       
   864   		<arg value="${tmpdir}"/>
       
   865   	</exec>
       
   866   	
       
   867   	<replaceregexp file="${tmpdir}/src-db/database/sourcedata/AD_MODULE.xml"
       
   868                    match="(VERSION.*\[CDATA\[.*\..*\.)(.*)(\]\])"
       
   869                    replace="\1${core.rev}\3"
       
   870                    byline="true"/>
       
   871     
       
   872     <zip destfile="${basedir}/core-2.50.${core.rev}.obx" basedir="${tmpdir}"/>
       
   873     
       
   874     <delete dir="${tmpdir}"/>
       
   875 
       
   876    </target>
   848 </project>
   877 </project>