# HG changeset patch
# User royt <tathagatar@symbian.org>
# Date 1252939626 -3600
# Node ID efd6b490c9fae5ef25e11825639ef47853ad3a9e
# Parent  097b220a49d0166adc3782fa3b0c9149c0a326a8
ATS target made.

diff -r 097b220a49d0 -r efd6b490c9fa common/build.test.xml
--- a/common/build.test.xml	Mon Sep 14 15:36:19 2009 +0100
+++ b/common/build.test.xml	Mon Sep 14 15:47:06 2009 +0100
@@ -172,7 +172,7 @@
 
 	<!-- Sending testdrop to ATS3 -->
 	
-    <target name="sf-send-testpkg" depends="sf-find-ATS-worker-root,sf-make-junction">
+    <target name="sf-send-testpkg" depends="sf-start-ats,sf-find-ATS-worker-root,sf-make-junction">
         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
@@ -185,4 +185,9 @@
             <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
         </exec>
     </target>
+	<target name="sf-start-ats">        			
+	    <exec executable="${ats.drive}/start.cmd" dir="${ats.drive}" failonerror="false" spawn="true" vmlauncher="false" />
+		<echo message="Waiting for 10 seconds to start the ATS Worker......."/>
+		<sleep seconds="10"/>
+    </target> 
 </project>
diff -r 097b220a49d0 -r efd6b490c9fa common/build.xml
--- a/common/build.xml	Mon Sep 14 15:36:19 2009 +0100
+++ b/common/build.xml	Mon Sep 14 15:47:06 2009 +0100
@@ -27,6 +27,7 @@
     <property name="base_release.path" value="${sf.spec.baseline.location}"/>
     <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
     <property name="ccm.user.password" value="set_to_any_value_to_skip_scm_checks__for_helium_5"/>
+	<property name="ats.drive" value="${sf.spec.ats_worker.drive}"/>
     
     <if>
       <equals arg1="${sf.spec.publish.diamonds.tag}" arg2="test"/>
diff -r 097b220a49d0 -r efd6b490c9fa common/common_props.ant.xml
--- a/common/common_props.ant.xml	Mon Sep 14 15:36:19 2009 +0100
+++ b/common/common_props.ant.xml	Mon Sep 14 15:47:06 2009 +0100
@@ -59,6 +59,7 @@
     <property name="sf.spec.publish.diamonds.port" value="80"/>
     <property name="sf.spec.publish.diamonds.path" value="/diamonds/builds/"/>
     <property name="sf.spec.publish.diamonds.tag" value="test"/>
+	<property name="sf.spec.ats_worker.drive" value="C:\apps\ATS3\bin"/>
     
     <property name="sf.spec.tagafterbuild.enable" value="false"/>