C
Chris Bedford
Hello, all:
I've seen this question posted a couple of times, but never with an
answer that does the trick for me.... So with all your permission,
I'll try again.
I'm trying to launch tomcat via an ant task like this ->>>
<target name="start.tomcat">
<java classname="org.apache.catalina.startup.Bootstrap"
fork="yes">
<jvmarg value="-Dcatalina.home=${dir.tomcat}"/>
<jvmarg value="-Dcatalina.base=${dir.tomcat}"/>
<arg value="start"/>
<classpath>
<fileset dir="${dir.tomcat}">
<include name="bin/bootstrap.jar"/>
</fileset>
</classpath>
</java>
<echo>yo</echo>
</target>
But although tomcat starts, it hangs ant -- ant never finishes. I
thought the 'fork' would start tomcat in a new jvm. Any
have an idea about what whackiness is afoot here ?
Some have suggested the use of the parallel task... But my
understanding of parallel is that you will see the 'yo' being
echoed... But ant will not halt until tomcat exits... which is not
what i want... i want ant to terminate and tomcat to stay around
doing its thing.
any help much appreciated ! / Chris
I've seen this question posted a couple of times, but never with an
answer that does the trick for me.... So with all your permission,
I'll try again.
I'm trying to launch tomcat via an ant task like this ->>>
<target name="start.tomcat">
<java classname="org.apache.catalina.startup.Bootstrap"
fork="yes">
<jvmarg value="-Dcatalina.home=${dir.tomcat}"/>
<jvmarg value="-Dcatalina.base=${dir.tomcat}"/>
<arg value="start"/>
<classpath>
<fileset dir="${dir.tomcat}">
<include name="bin/bootstrap.jar"/>
</fileset>
</classpath>
</java>
<echo>yo</echo>
</target>
But although tomcat starts, it hangs ant -- ant never finishes. I
thought the 'fork' would start tomcat in a new jvm. Any
have an idea about what whackiness is afoot here ?
Some have suggested the use of the parallel task... But my
understanding of parallel is that you will see the 'yo' being
echoed... But ant will not halt until tomcat exits... which is not
what i want... i want ant to terminate and tomcat to stay around
doing its thing.
any help much appreciated ! / Chris