I have three targets of which one is using java as shown below
// Target that has java task
<java classname="org.apache.catalina.startup.Bootstrap" fork="true" classpathref="tomcat.class.path">
<jvmarg value="-Dcatalina.home=${build.tomcat.dir}" />
<arg line="start" />
</java>
My main target depends on the above target which has this java ant. The problem is everything works fine… this java ant starts my tomcat server and the control is not moved to the next target. Build.xml will be in running state.
How do I make the control move to the next targer once the target with java ant is done with the execution.
I have used parallel with daemons element and it worked fine… started the server and the control moved the next target. But the problem here is once I see a message in the console that server is up and when I try to access tomcat, it is up and running. Once the entire build is done and Build Successful message is displayed then again if I try to access tomcat, I do not see it up and running.
Any help please…
Thanks,
Try setting spawn = “true”