Catchup from Shabe's changes
authordariosestito@L063522.prod.ad.symbian.intra
Tue, 17 Mar 2009 18:17:56 +0000
changeset 19 3bb3e0eff093
parent 18 9f36ff790ea7 (current diff)
parent 17 c677077df18c (diff)
child 20 19748fd5a5d0
Catchup from Shabe's changes
build.xml
common/build.xml
--- a/build.xml	Tue Mar 17 16:31:24 2009 +0000
+++ b/build.xml	Tue Mar 17 18:17:56 2009 +0000
@@ -2,14 +2,16 @@
 <project name="SF-CONFIG">
   <!-- location of this config -->
   <dirname property="sf.config.dir" file="${ant.file.SF-CONFIG}"/>
+  <property name="sf.project.location" value="../build/config"/>
+  <property name="sf.project.name" value="job"/>
      
   <!-- import job properties -->
-  <import file="${sf.config.dir}/../build/config/job_props.ant.xml" />
+  <import file="${sf.project.location}/${sf.project.name}_props.ant.xml" />
   
   <!-- import project properties/targets/references -->
   <import file="sf-${sf.project.type}/build.xml" />
   
   <!-- import job references -->
-  <import file="${sf.config.dir}/../build/config/job_refs.ant.xml" />
+  <import file="${sf.project.location}/${sf.project.name}_refs.ant.xml" />
   
 </project>
\ No newline at end of file
--- a/common/build.xml	Tue Mar 17 16:31:24 2009 +0000
+++ b/common/build.xml	Tue Mar 17 18:17:56 2009 +0000
@@ -68,7 +68,7 @@
               outputFile="${sf.common.config.dir}/generated/source-spec.ant.xml">
               <data expandProperties="yes">
                     ant: antProperties()
-                    data: csv(${sf.common.config.dir}/../../build/config/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
+                    data: csv(${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
               </data>
         </fmpp>
     </target>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/properties.default.ant.xml	Tue Mar 17 18:17:56 2009 +0000
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="SF-PROPERTIES-DEFAULT">
+
+        <dirname property="sf.common.properties.dir" file="${ant.file.SF-PROPERTIES-DEFAULT}"/>    
+
+        <property environment="env"/> <!-- make environment variables available via env -->
+        <property name="build.system"      value="sbs"/>
+        <property name="prep.root.dir"     value=""/>
+                    
+        <property name="local.free.space"      value="10"/>
+        <property name="network.free.space"    value="10"/>
+        <property name="network.drive"         value="\\builds01\devbuilds\GRACE"/>
+        <property name="publish.root.dir"      value="\\builds01\devbuilds\GRACE"/>
+
+        <property name="sf.project.location"   value="${sf.common.properties.dir}/../../build/config"/>
+        <property name="sf.project.name"       value="project_spec.ant.xml"/>
+            
+</project>
+
--- a/common/templates/source-spec.ant.xml.ftl	Tue Mar 17 16:31:24 2009 +0000
+++ b/common/templates/source-spec.ant.xml.ftl	Tue Mar 17 18:17:56 2009 +0000
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<project name="hg-build-gen-xml" default="all" xmlns:hlm="http://www.nokia.com/helium">
+<project name="SF-SOURCESPEC" default="all" xmlns:hlm="http://www.nokia.com/helium">
 
 <#assign fileset = "" />
 <#assign target_depends = "" />
@@ -9,7 +9,7 @@
 <#list data as pkg_detail>
     <target name="sf-prebuild-${count}">
         <#if (count > 0) >
-            <#assign fileset = "${fileset}" + "," />
+            <#assign fileset = "${fileset}"  />
         </#if>
         <sequential>
             <delete dir="${ant['build.drive']}${pkg_detail.dst}" failonerror="false"/>
@@ -26,8 +26,16 @@
         </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 />
+    
+    <#if (count == 0) >
+    				<#assign target_depends = "${target_depends}" + "sf-prebuild-${count}" />
+    </#if>
+    <#if (count > 0) >
+            <#assign target_depends ="${target_depends}" + ","+"sf-prebuild-${count}"/>
+    </#if>
+    
+    <#assign count = count + 1 />
+
 </#list>
 
     <path id="system.definition.files">