Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 22160 invoked from network); 16 Jun 2008 08:06:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jun 2008 08:06:40 -0000 Received: (qmail 42865 invoked by uid 500); 16 Jun 2008 08:06:38 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 42843 invoked by uid 500); 16 Jun 2008 08:06:38 -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 42831 invoked by uid 99); 16 Jun 2008 08:06:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 01:06:38 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Shawn.Castrianni@halliburton.com designates 34.254.16.14 as permitted sender) Received: from [34.254.16.14] (HELO HOUMAIL002.halliburton.com) (34.254.16.14) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 08:05:47 +0000 Received: from HOUEXHU011.corp.halliburton.com (houexhu011.corp.halliburton.com [34.224.232.232]) by HOUMAIL002.halliburton.com (8.13.8/8.13.8) with ESMTP id m5G7usF5018662 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Mon, 16 Jun 2008 03:05:03 -0500 Received: from HOUEXCH012.corp.halliburton.com ([34.224.232.93]) by HOUEXHU011.corp.halliburton.com ([34.224.232.232]) with mapi; Mon, 16 Jun 2008 03:04:01 -0500 From: Shawn Castrianni To: "'Ant Users List'" Date: Mon, 16 Jun 2008 03:03:59 -0500 Subject: RE: Depends="init" problem Thread-Topic: Depends="init" problem Thread-Index: AcjPhZ0Mq5frVntkRHGGcYZH2nG0rAAAVPbA Message-ID: <745B9EDF57802349B13F90E4E0B4B86C3BA402C0C3@HOUEXCH012.corp.halliburton.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-HALSTAMP: TRUE X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.7161:2.4.4,1.2.40,4.0.164 definitions=2008-06-16_01:2008-06-13,2008-06-15,2008-06-16 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0805090000 definitions=main-0806160002 X-Virus-Checked: Checked by ClamAV on apache.org There are many ways to call ant targets. If you stick with using the depen= ds to get a target called, then ant will never duplicate a target. So to g= et a target to call a then b then c but only run init once, just make this = new "big" target depend on a,b,c and it will call each of them in order fir= st before big which will even before that first call init only one time. So you should see: --- Shawn Castrianni -----Original Message----- From: Guy Catz [mailto:Guy.catz@waves.com] Sent: Monday, June 16, 2008 2:50 AM To: user@ant.apache.org Subject: Depends=3D"init" problem I have several targets, all depends on init - ... ... ... and of course ... Now, I also have a target which call a, then b and then c. But when I run that ANT, the output is something like this - running - successful running - successful running - successful running - successful running - successful running - successful which means that Init ran 3 times!! instead of only once. I do I make it to run only once? Please advise. Thanks, Guy. ---------------------------------------------------------------------- This e-mail, including any attached files, may contain confidential and pri= vileged information for the sole use of the intended recipient. Any review= , use, distribution, or disclosure by others is strictly prohibited. If yo= u are not the intended recipient (or authorized to receive information for = the intended recipient), please contact the sender by reply e-mail and dele= te all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org