This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wondering how to launch tomcat from ant without ant freezing up.

chris-to-pher lastname-bedford
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there ~
I'm trying to launch tomcat via an ant task like this >>>
<target name="start.tomcat">
<java classname="org.apache.catalina.startup.Bootstrap"
<jvmarg value="-Dcatalina.home=${dir.tomcat}"/>
<jvmarg value="-Dcatalina.base=${dir.tomcat}"/>
<arg value="start"/>
<fileset dir="${dir.tomcat}">
<include name="bin/bootstrap.jar"/>

But although tomcat starts, it hangs ant -- ant never finishes. I thought the 'fork' would start tomcat in a new jvm, and that would allow
the jvm running ant to exit while tomcat keeps running.. but no dice.
Does anyone have any idea about what whackiness is afoot here ?
Some have suggested to use the 'parallel' task... but as i understand that task it will not end until tomcat exits... which is not what i want.. i want to launch tomcat, finish my build and have tomcat continue to hang around in the background. thanks very much for your help !
chris-to-pher lastname-bedford
Posts: 3
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic