Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 88045 invoked from network); 26 Jul 2005 16:07:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jul 2005 16:07:46 -0000 Received: (qmail 39944 invoked by uid 500); 26 Jul 2005 16:07:38 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 39889 invoked by uid 500); 26 Jul 2005 16:07:37 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 39876 invoked by uid 99); 26 Jul 2005 16:07:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 09:07:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of pjlmartin@gmail.com designates 64.233.182.198 as permitted sender) Received: from [64.233.182.198] (HELO nproxy.gmail.com) (64.233.182.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 09:07:30 -0700 Received: by nproxy.gmail.com with SMTP id x4so215373nfb for ; Tue, 26 Jul 2005 09:07:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=B6fH/SQbDXsqsc3agNwLKkgueKuFMF5pgyt79CWZqHq6LCjuWNJPSrgQexws4izeK4mVD5AQuIiNRGBbpP322XaAWdBjfRKba3IneCAZKxFvbb+/6+0z3X8f+tX6S808V73SOqZX4BQnwoQyv3QnKLHmjAFrfW27FalAJt22kw0= Received: by 10.48.239.19 with SMTP id m19mr29681nfh; Tue, 26 Jul 2005 09:07:34 -0700 (PDT) Received: by 10.48.49.18 with HTTP; Tue, 26 Jul 2005 09:07:34 -0700 (PDT) Message-ID: <155d45e05072609072085fa53@mail.gmail.com> Date: Tue, 26 Jul 2005 18:07:34 +0200 From: Patrick Martin Reply-To: Patrick Martin To: user@ant.apache.org Subject: wait for background thread Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, Writing an task, I want to run some stuff in a background thread, and I need ant to wait until the background thread is done before exiting. I thought I would take example on the ant-contrib forget task, but it seems that ant will exit even if the background thread is not finished: =09 =09 =09=09 =09=09 =09=09=09 =09=09 =09=09 =09 Here is the output: test: [echo] before wait BUILD SUCCESSFUL Total time: 0 seconds I tested with the daemon attribute set to true and false. Same thing. What is the recommended way to run tasks in background and ensure they will be executed before the exit of ant ? Thank you, Patrick --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org