common/build.test.xml
changeset 1088 31677de59336
parent 1087 73af6e555060
child 1089 9c363aa36549
equal deleted inserted replaced
1087:73af6e555060 1088:31677de59336
   197             <arg value="--ats-worker-path=${sf.spec.ats_worker.drive}"/>
   197             <arg value="--ats-worker-path=${sf.spec.ats_worker.drive}"/>
   198         </exec>
   198         </exec>
   199     </target>
   199     </target>
   200     
   200     
   201     <target name="sf-start-ats">
   201     <target name="sf-start-ats">
   202         <if><available file="${ats.drive}/start.cmd"/>        
   202         <if><equals arg1="${sf.spec.ats.version}" arg2="ats3"/>
       
   203             <then>
       
   204                 <if><available file="${ats.drive}/start.cmd"/>  
       
   205                     <then>
       
   206                         <forget>
       
   207                             <exec executable="cmd" dir="${ats.drive}" failonerror="true">
       
   208                                 <arg value="/c"/>
       
   209                                 <arg value="start"/>
       
   210                                 <arg value='"ATS3 STAF"'/>
       
   211                                 <arg value="/D"/>
       
   212                                 <arg value="."/>
       
   213                                 <arg value="/MAX"/>
       
   214                                 <arg value="run.cmd"/>
       
   215                             </exec>
       
   216                         </forget>
       
   217                         <echo message="Waiting for 10 seconds for the ATS Worker to start......."/>
       
   218                         <sleep seconds="10"/>
       
   219                     </then>
       
   220                 </if>
       
   221             </then>
       
   222         </if>
       
   223         <if><equals arg1="${sf.spec.ats.version}" arg2="ats4"/>
   203             <then>
   224             <then>
   204                 <forget>
   225                 <forget>
   205                     <exec executable="cmd" dir="${ats.drive}" failonerror="true">
   226                     <exec executable="cmd" dir="${ats.drive}" failonerror="true">
   206                         <arg value="/c"/>
   227                         <arg value="/c"/>
   207                         <arg value="start"/>
   228                         <arg value="start"/>
   208                         <arg value='"ATS3 STAF"'/>
   229                         <arg value='"ATS4 Agent"'/>
   209                         <arg value="/D"/>
   230                         <arg value="/D"/>
   210                         <arg value="."/>
   231                         <arg value="."/>
   211                         <arg value="/MAX"/>
   232                         <arg value="/MAX"/>
   212                         <arg value="run.cmd"/>
   233                         <arg value="startAgent.cmd"/>
   213                     </exec>
   234                     </exec>
   214                 </forget>
   235                 </forget>
   215                 <echo message="Waiting for 10 seconds for the ATS Worker to start......."/>
   236                 <echo message="Waiting for 10 seconds for the ATS4 Agent(s) to start......."/>
       
   237                 <sleep seconds="10"/>
       
   238                 <forget>
       
   239                     <exec executable="cmd" dir="${ats.drive}" failonerror="true">
       
   240                         <arg value="/c"/>
       
   241                         <arg value="start"/>
       
   242                         <arg value='"ATS4 Engine"'/>
       
   243                         <arg value="/D"/>
       
   244                         <arg value="."/>
       
   245                         <arg value="/MAX"/>
       
   246                         <arg value="startEngine.cmd"/>
       
   247                     </exec>
       
   248                 </forget>
       
   249                 <echo message="Waiting for 10 seconds for the ATS4 Engine to start......."/>
   216                 <sleep seconds="10"/>
   250                 <sleep seconds="10"/>
   217             </then>
   251             </then>
   218         </if>
   252         </if>
   219     </target> 
   253     </target> 
   220 </project>
   254 </project>