--- a/common/build.test.xml Mon Apr 26 14:42:28 2010 +0100
+++ b/common/build.test.xml Tue Apr 27 09:29:07 2010 +0100
@@ -183,9 +183,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>