Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 55306 invoked from network); 7 May 2003 14:27:57 -0000 Received: from almso2.att.com (HELO almso2.proxy.att.com) (192.128.166.71) by daedalus.apache.org with SMTP; 7 May 2003 14:27:57 -0000 Received: from attrh0i.attrh.att.com ([135.37.94.54]) by almso2.proxy.att.com (AT&T IPNS/MSO-4.0) with ESMTP id h47E2DjJ013212 for ; Wed, 7 May 2003 10:26:57 -0400 (EDT) Received: from acclust02evs1.ugd.att.com (135.37.16.9) by attrh0i.attrh.att.com (6.5.019) id 3EB865EE0002852E; Wed, 7 May 2003 10:26:57 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: make ant ignore forked thread Date: Wed, 7 May 2003 10:26:56 -0400 Message-ID: <126C77D3993DC640B8C9012D54A3C460048B8D13@ACCLUST02EVS1.ugd.att.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: make ant ignore forked thread Thread-Index: AcMUkDevt5awUFKeSx2I4CJfUPrMVAAE+NZQ From: "Tharp, Joshua L, SOLGV" To: "Ant Users List" , "Jens Skripczynski" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I haven't tried this, but... Can you another ANT that does the for Tomcat? Exec'ing ANT ought to be easier than exec'ing Tomcat, and you could still use ANT's features to establish your classpath... I realize it is still an exec, but it might be worth a try. Josh -----Original Message----- From: Jens Skripczynski [mailto:skripi-lists@myrealbox.com]=20 Sent: Wednesday, May 07, 2003 3:49 AM To: Steffen Schluff Cc: user@ant.apache.org Subject: Re: make ant ignore forked thread Hi Steffen, I wanted to run tomcat just using the task, as the exec task limits me to the os specific commands (for tomcat startup.(bat|sh)). But actually I can specify everything comcat needs inside one task (with classpath, properties...), thus using ants ability to hide the OS from the script (i'm lazy). So it seems, that currently the task does not support to detach (?) a thread | forked jvm, it has started ? To me it seems a great feature, having a single startup ant-script for a java based server.=20 Is it possible to add an additional tag to the task like 'daemon=3D"yes"' needing 'fork=3D"yes"'. Ant is supposed to start the = jvm and 'forget' about it. Steffen Schluff: > there was a posting on this mailing list at the beginning of this year > regarding this problem called "support for detached on Unix and > Windows". >=20 > You can find it at > http://www.mail-archive.com/ant-user@jakarta.apache.org/msg23641.html > otherwise try Google with the term "antrunasync". There is a download on > this page called ant_async.zip which includes a script based ant extension > solving this kinds of problems (for certain environments at least). It works > fine for us maybe you want to give it a try. >=20 > Here is sample showing how to start Tomcat the comments are german but > you'll probably get the idea anyway :-) >=20 > >=20 > >=20 > >=20 > > > value=3D"C:\Steffen\temp\Tomcat-4.1.12-LE-jdk14\bin"/> > >=20 > > > failonerror=3D"true"> > > > >=20 > > > > > maxwait=3D"30" maxwaitunit=3D"second" > checkevery=3D"500" checkeveryunit=3D"millisecond" > > > > > >=20 > >=20 > Ciao Jens Skripczynski --=20 E-Mail: skripi-lists(at)myrealbox(dot)com In this world there are only two tragedies; one is not getting what one wants, the other is getting it. -- Oscar Wild --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org