Add new bootstrap properties and sysdef template
authorshaberazvi@L063442.prod.ad.symbian.intra
Wed, 04 Mar 2009 14:57:09 +0000
changeset 2 72b77c4ee224
parent 1 ebb0926c7024
child 3 c360fdfe164c
Add new bootstrap properties and sysdef template
bootstrap.properties.ant.xml
templates/hg-pkg-build.ant.xml.ftl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bootstrap.properties.ant.xml	Wed Mar 04 14:57:09 2009 +0000
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="SF-BOOTSTRAP" default="bootstrap" xmlns:hlm="http://www.nokia.com/helium">
+    <property name="sbs.tools.src.path" value="e:\build_e\varamana\sbs-source-dir"/>
+    <property name="sbs.zip.file" value="sbs_2.4.0_with_nokia_cfgs.zip"/>    
+    
+    <!-- location of Hg helium config repositories -->
+    <property name="sf.config.repository"       value="e:\build_e\hg-sf-helium-config" />
+    
+    <!-- call this project -->
+    <property name="platform.config.repository" value="e:\build_e\hg-platform-config" />
+    
+    <!-- the build dir to put bootstrap files into -->
+    <property name="bootstrap.base.dir" value="e:\build_e\sf-bootstrap-new" />
+    <property name="hg.config" value="full-list.csv" />
+</project>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/hg-pkg-build.ant.xml.ftl	Wed Mar 04 14:57:09 2009 +0000
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<project name="hg-build-gen-xml" default="all" xmlns:hlm="http://www.nokia.com/helium">
+
+<#assign fileset = "" />
+<#assign target_depends = "" />
+<#assign dollar = "$"/>
+<#assign count = 0 />
+
+<#list data as pkg_detail>
+    <target name="sf-prebuild-${count}">
+        <#if (count > 0) >
+            <#assign fileset = "${fileset}" + "," />
+        </#if>
+        <sequential>
+            <delete dir="${ant['build.drive']}${pkg_detail.dst}" failonerror="false"/>
+            <mkdir dir="${ant['build.drive']}${pkg_detail.dst}"/>
+            <hlm:scm verbose="true" scmUrl="scm:hg:${pkg_detail.source}">
+                <hlm:checkout basedir="${ant['build.drive']}${pkg_detail.dst}"/>
+                <hlm:tags basedir="${ant['build.drive']}${pkg_detail.dst}" reference="hg.tags.id${dollar}{refid}"/>
+                <hlm:update basedir="${ant['build.drive']}${pkg_detail.dst}">
+                    <hlm:latestTag pattern="${pkg_detail.tag}">
+                        <hlm:tagSet refid="hg.tags.id${dollar}{refid}" />
+                    </hlm:latestTag>
+                </hlm:update>
+            </hlm:scm>
+        </sequential>
+    </target>
+    <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" />
+    <#assign target_depends = "${target_depends}" + "sf-prebuild-${count}" />
+    <#assign count = "${count}" + 1 />
+</#list>
+
+    <path id="system.definition.files">
+        <fileset dir="${dollar}{sf.common.config.dir}/sysdefs" includes="*.sysdef.xml"/>
+        ${fileset}
+    </path>
+
+<target name="all" depends="${target_depends}"/>
+
+</project>
\ No newline at end of file