build.xml
changeset 4280 a2f6c1f8d4fb
parent 4279 959b1cd36773
child 4287 d3aa261a64fc
equal deleted inserted replaced
4279:959b1cd36773 4280:a2f6c1f8d4fb
   851     <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" />
   851     <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" />
   852 
   852 
   853     <chmod file="config/setup-properties-${osname}${osarch}.${bin.ext}" perm="+x" />
   853     <chmod file="config/setup-properties-${osname}${osarch}.${bin.ext}" perm="+x" />
   854   </target>
   854   </target>
   855 
   855 
   856   <target name="package.core" depends="set.version.number">
   856   <target name="package.core" depends="init, set.version.number">
   857 	<property name="tmpdir" value="${java.io.tmpdir}/ob.core${core.rev}" />
   857 	<property name="tmpdir" value="${java.io.tmpdir}/ob.core${core.rev}" />
   858    
   858    
   859   	<exec executable="hg" >
   859   	<exec executable="hg" >
   860   		<arg value="archive"/>
   860   		<arg value="archive"/>
   861   		<arg value="${tmpdir}"/>
   861   		<arg value="${tmpdir}"/>
   864   	<replaceregexp file="${tmpdir}/src-db/database/sourcedata/AD_MODULE.xml"
   864   	<replaceregexp file="${tmpdir}/src-db/database/sourcedata/AD_MODULE.xml"
   865                    match="(VERSION.*\[CDATA\[).*\..*\.(.*)(\]\])"
   865                    match="(VERSION.*\[CDATA\[).*\..*\.(.*)(\]\])"
   866                    replace="\1${core.rev}\3"
   866                    replace="\1${core.rev}\3"
   867                    byline="true"/>
   867                    byline="true"/>
   868     
   868     
       
   869     <echo message="${hg.id}" file="${tmpdir}/config/instance.revision"/>
       
   870     
   869     <zip destfile="${basedir}/core-${core.rev}.obx" basedir="${tmpdir}"/>
   871     <zip destfile="${basedir}/core-${core.rev}.obx" basedir="${tmpdir}"/>
   870     
   872     
   871     <delete dir="${tmpdir}"/>
   873     <delete dir="${tmpdir}"/>
   872 
   874 
   873    </target>
   875    </target>