how can my ant exec task wait to end called bat file

Refresh

6 days ago

Views

6 time

0

I have task in which an exec task call an install.bat file ant exit after calling this . i want to make ant to wait for next task till called bat file executed to end. in below code ant call install.bat and then call start.bat i want to make wait to call start.bat until install.bat get completes.

Thanks

<target name="execute" >
   <echo message="executing install.bat file"></echo>
   <exec dir="${adss.file.dest}\setup" executable="cmd">
      <arg value="/c"/>
      <arg value="call"/>
      <arg value="install.bat"/>
   </exec>
   <exec dir="${adss.file.dest}\tomcat\bin" executable="cmd">
      <arg value="/c"/>
      <arg value="call"/>
      <arg value="start.bat"/>
   </exec>
</target>

0 answers