• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
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, 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
 
chris-to-pher lastname-bedford
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here is the answer:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=a48ee38b.0307301142.9aaf54f%40posting.google.com
 
reply
    Bookmark Topic Watch Topic
  • New Topic