common/build.test.xml
changeset 984 a820ca8ac7a7
parent 972 987d54f2fefd
child 985 380b3f627065
--- 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>