ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject How to kill a task started from ant?
Date Tue, 27 Aug 2002 18:20:02 GMT
Hi all,

I need (would like to) to start JBoss in from my build file, and then kill 
it so that the rest of build file can be performed. Follows snippet of the 
build file where I start the JBoss and
in parallel (with some delay) I start other application.

      <echo message="Starting JBoss."/>
      <exec dir="${project.jbosshome.dir}\bin" 
executable="${project.jbosshome.dir}\bin\run.bat" timeout="150000"/>
        <echo message="Wating for JBoss to start."/>
        <sleep seconds="50"/>
        <echo message="Starting XSLTCreator."/>
        <exec dir="${xsltCreator.dir}" 
          <arg line="e:\temp\xslt" />

The problem is that the tasks which are after this are never executed, 
since the JBoss never quits. Is there any way out? I could run them in yet 
another thread but I am not sure that that's the right way to do it.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message