Run start.cmd only if it exists
authorBrendan Donegan <brendand@symbian.org>
Tue, 20 Apr 2010 13:47:33 +0100
changeset 984 a820ca8ac7a7
parent 974 50e351dfaafe
child 985 380b3f627065
Run start.cmd only if it exists
common/build.test.xml
--- a/common/build.test.xml	Mon Apr 19 18:17:00 2010 +0100
+++ b/common/build.test.xml	Tue Apr 20 13:47:33 2010 +0100
@@ -182,9 +182,13 @@
             <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
         </exec>
     </target>
-	<target name="sf-start-ats">        			
-	    <exec executable="start.cmd" dir="${ats.drive}" spawn="true" failonerror="false"/>
-		<echo message="Waiting for 10 seconds to start the ATS Worker......."/>
-		<sleep seconds="10"/>
+    
+	<target name="sf-start-ats">
+    <if><available file="${ats.drive}/start.cmd"/>        
+    <then>
+        <exec executable="start.cmd" dir="${ats.drive}" spawn="true" failonerror="false"/>
+        <echo message="Waiting for 10 seconds to start the ATS Worker......."/>
+        <sleep seconds="10"/>
+    </then>
     </target> 
 </project>