Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 58143 invoked from network); 7 Jan 2006 18:16:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jan 2006 18:16:37 -0000 Received: (qmail 17743 invoked by uid 500); 7 Jan 2006 18:16:35 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 16752 invoked by uid 500); 7 Jan 2006 18:16:32 -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 16741 invoked by uid 99); 7 Jan 2006 18:16:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jan 2006 10:16:32 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of glennoph@gmail.com designates 64.233.184.201 as permitted sender) Received: from [64.233.184.201] (HELO wproxy.gmail.com) (64.233.184.201) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jan 2006 10:16:31 -0800 Received: by wproxy.gmail.com with SMTP id i27so2607451wra for ; Sat, 07 Jan 2006 10:16:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r2Qg1VdEJyqGQKjizCm0CxJTpWxh8XNH0qzMwO1iGdsDAkxVIDlkAO5HKis6orD4Loq0WIPiyOAy0ljGBxnQsmXevglMqbEiy4/cHFMcTOD9ll8Kcl/MUwGF2arX8JVJi7tnpMe1O0Qouw5ABEIuC8iEN1VEkWPkeLJFvq5/H0o= Received: by 10.54.72.15 with SMTP id u15mr6557929wra; Sat, 07 Jan 2006 10:16:10 -0800 (PST) Received: by 10.54.153.19 with HTTP; Sat, 7 Jan 2006 10:16:10 -0800 (PST) Message-ID: Date: Sat, 7 Jan 2006 12:16:10 -0600 From: glenn opdycke-hansen To: Ant Users List Subject: Re: Perform tasks conditionally In-Reply-To: <43BF266B.3070706@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43BF266B.3070706@mac.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I would look at uptodate http://ant.apache.org/manual/CoreTasks/uptodate.html That would test file timestamps and set a property. I am not sure what you want to do. --glenn On 1/6/06, Steve Roy wrote: > Hello, > > I have been using Ant for about a year but I still feel like I am a > newbie, and maybe this explains my question, but you tell me. > > I have a script where I compile the sources for my project and jar it > all up. This works well but I'm looking at adding an optimization where > the Jar task would be skipped if no source file had to be recompiled. > How could I do that? > > I looked at the Condition task, but that didn't light up anything in my > mind. I'm guessing that I need to find out from the Javac task how many > files had to be compiled, but how would I do that? > > Steve > > -- > Steve Roy > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org