Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 70208 invoked from network); 7 May 2003 12:11:24 -0000 Received: from prod.oio.de (213.217.99.129) by daedalus.apache.org with SMTP; 7 May 2003 12:11:24 -0000 Received: from LAP0016 (dhcp194.intern.oio.de [192.168.1.194]) by prod.oio.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with SMTP id h47BEEA26137 for ; Wed, 7 May 2003 13:14:14 +0200 From: "Steffen Schluff" To: "Ant Users List" Subject: AW: make ant ignore forked thread Date: Wed, 7 May 2003 14:13:10 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20030507104926.GA2081@shadowland.intern.shadowbyte.net> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Jens, I know exactly what you when and definetly do agree with you (no need to use shell scripting as workaround for a 'simple' java call). But as far as I know there is currently no way to do this using 'pure' ant. Unfortunately I'm not aware if this could easily implemented or if this feature is planned respectively. Maybe someone else can comment on this? Best regards Steffen Schluff Orientation in Objects GmbH http://www.oio.de -----Ursprungliche Nachricht----- Von: Jens Skripczynski [mailto:skripi-lists@myrealbox.com] Gesendet: Mittwoch, 7. Mai 2003 12:49 An: Steffen Schluff Cc: user@ant.apache.org Betreff: 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. Is it possible to add an additional tag to the task like 'daemon="yes"' needing 'fork="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". > > 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. > > Here is sample showing how to start Tomcat the comments are german but > you'll probably get the idea anyway :-) > > > > > > > > > > value="C:\Steffen\temp\Tomcat-4.1.12-LE-jdk14\bin"/> > > > > > failonerror="true"> > > > > > > > > > maxwait="30" maxwaitunit="second" > checkevery="500" checkeveryunit="millisecond" > > > > > > > > > Ciao Jens Skripczynski -- 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