Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 63967 invoked from network); 26 Jun 2008 19:44:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2008 19:44:18 -0000 Received: (qmail 68014 invoked by uid 500); 26 Jun 2008 19:44:16 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 67980 invoked by uid 500); 26 Jun 2008 19:44:16 -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 67969 invoked by uid 99); 26 Jun 2008 19:44:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 12:44:16 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paikens@gmail.com designates 209.85.200.173 as permitted sender) Received: from [209.85.200.173] (HELO wf-out-1314.google.com) (209.85.200.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 19:43:27 +0000 Received: by wf-out-1314.google.com with SMTP id 23so148932wfg.10 for ; Thu, 26 Jun 2008 12:43:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=wSMUUUZ/8GU5j4EP6/PIiYGFvaacMG/L7lvpsXHsvrw=; b=xbnLEf8cUZQ6f5M1aVYvRSl6Go/BGxFXw/HtDvQch/thxU9rUwfprzSejUhQwM8BUd htquof/BGEUeruICZk3xM636EC9T1H6GDJY3yHLqyUlAhHCkicd43ZDo4RuxPY8mbVaS /SoGGyKPCQIxSRKuBf007zVg8BULx0OJLC7Kg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=QkEzxkSKvhm5Afn32zRMQjsBkM3jw6AlUtPuowoJamJKx7NOMJwkZv+hkcRpB5TOaP 7dD2VDfZiNxWXELOZ/guZZ9+/7PWs+i+WIkH/wqSaAWwubnPaQeS+lVrFxxXjORDBAJF 4AC6vHUz/6h5qxbECveJ/RHRp6PqJ5g0Go7nA= Received: by 10.142.188.4 with SMTP id l4mr116999wff.92.1214509406209; Thu, 26 Jun 2008 12:43:26 -0700 (PDT) Received: by 10.142.165.3 with HTTP; Thu, 26 Jun 2008 12:43:26 -0700 (PDT) Message-ID: <941a6680806261243u5f3500ffy2c61b7b8af3b4626@mail.gmail.com> Date: Thu, 26 Jun 2008 15:43:26 -0400 From: "Patrick Aikens" To: "Ant Users List" Subject: Re: calling ANT or Depends? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2942_14860633.1214509406210" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2942_14860633.1214509406210 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Using the task will actually execute a new ant process for each target, which means that in that particular ant process, init has never been called - thus it gets called every time. The depends line you have in your previous mail is still the best way to go - the "prepare something" step should probably be in your sendReport target, or in another target that sendReport depends on. On Wed, Jun 25, 2008 at 9:38 AM, Guy Catz wrote: > I want to run the most trivial build process - > init, and - clean, compile, sendReport which depend on init. > > Now, I've wrote a MAIN target - > > > > > > > > > > The problem - init is being called three times. > > I know that the best way to do it is > > but the problem is that I have to do something between the compile and the > sendReport targets. > > how can I accomplish this? > > Please advise. > > Thanks, > Guy. > -- Groucho Marx - "A child of five would understand this. Send someone to fetch a child of five." ------=_Part_2942_14860633.1214509406210--