Added invokation to build.xml and adjusted path to backup locations to match my development environment.
authorSimon Howkins <simonh@symbian.org>
Tue, 04 Aug 2009 12:20:40 +0100
changeset 330 f2e8947e085a
parent 329 06c2c867c6ad
child 331 f7c6fc4239ac
Added invokation to build.xml and adjusted path to backup locations to match my development environment.
common/build.xml
common/tools/csvToSysDef.pl
--- a/common/build.xml	Tue Aug 04 11:42:58 2009 +0100
+++ b/common/build.xml	Tue Aug 04 12:20:40 2009 +0100
@@ -529,6 +529,13 @@
         <echo message="Copying to ${build.drive}/definition.xml"/>
         <copy file="${sf.project.location}/${sf.spec.systemdefinition.source}" tofile="${build.drive}/definition.xml"/>
       </then>
+      <else>
+        <!-- Collate the system definition from the packages listed in sources.csv -->
+        <exec executable="perl" output="${build.drive}${sf.spec.systemdefinition.location}" logError="true">
+          <arg value="${sf.common.config.dir}/tools/csvToSysDef.pl"/>
+          <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
+        </exec>
+      </else>
     </if>
   </target>
     
@@ -695,7 +702,6 @@
     </target>
     
     <target name ="sf-make-junction">
-        
         <mkdir dir="${sf.spec.test.epocroot}"/>
 
         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
--- a/common/tools/csvToSysDef.pl	Tue Aug 04 11:42:58 2009 +0100
+++ b/common/tools/csvToSysDef.pl	Tue Aug 04 12:20:40 2009 +0100
@@ -55,7 +55,7 @@
 		$pkgDef =~ s{^/sf/}{};
 		$pkgDef =~ s{/[^/]*$}{};
 		# TODO: Where will this be on the build machine?
-		$pkgDef = "./packages/3k/$pkgDef/package_definition.xml";
+		$pkgDef = "../../packages/3k/$pkgDef/package_definition.xml";
 	}
 	die unless -f $pkgDef;