I have the following ant snippet
<macrodef name="webapp.start">
<attribute name="name" />
<sequential>
<!--deploy-->
<antcall target="webapp.@{name}" />
<!--start server-->
<antcall target="tomcat-server-start" />
<!--go to URL-->
<exec executable="firefox" os="Linux" >
<arg line="-new-tab http://localhost:${tomcat.port}/@{name}" />
</exec>
</sequential>
</macrodef>
It starts the server but does not open the browser. If I put the exec task in a seperate target and run it, it works fine. I am guessing that starting the server which is a process that does not end, the next one does not begin. How to do I overcome this issue. Is there a way I can start exec as a sperate process.