Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 3759 invoked from network); 29 Jun 2000 11:31:34 -0000 Received: from smtp01ffm.de.uu.net (192.76.144.150) by locus.apache.org with SMTP; 29 Jun 2000 11:31:34 -0000 Received: from sbodewig.bost.de ([195.127.75.69]) by smtp01ffm.de.uu.net (5.5.5/5.5.5) with ESMTP id NAA26267 for ; Thu, 29 Jun 2000 13:31:31 +0200 (MET DST) Received: (from bodewig@localhost) by sbodewig.bost.de (8.9.3/8.9.3) id NAA12227; Thu, 29 Jun 2000 13:31:28 +0200 X-Authentication-Warning: sbodewig.bost.de: bodewig set sender to bodewig@bost.de using -f To: ant-dev@jakarta.apache.org Subject: Re: Execute a task if file X older than file Y References: <0941E0D29BB1D21184F300105A9CB785C9E6D2@PST> From: Stefan Bodewig Date: 29 Jun 2000 13:31:28 +0200 In-Reply-To: Arun Katkere's message of "Wed, 28 Jun 2000 15:04:52 -0700" Message-ID: Lines: 10 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N >>>>> "AK" == Arun Katkere writes: AK> Is there a way in at to say, execute a task if file X older than AK> file Y? Something like foo.o: foo.c type rule in make? This kind of "do I need to work" checking is done by the task in Ant. javac and copydir are examples that follow exactly the same logic you describe. Stefan