Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 33305 invoked from network); 10 Sep 2007 08:45:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2007 08:45:39 -0000 Received: (qmail 1593 invoked by uid 500); 10 Sep 2007 08:45:29 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 1555 invoked by uid 500); 10 Sep 2007 08:45:29 -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 1544 invoked by uid 99); 10 Sep 2007 08:45:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 01:45:29 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of peter.kitt.reilly@gmail.com designates 209.85.198.189 as permitted sender) Received: from [209.85.198.189] (HELO rv-out-0910.google.com) (209.85.198.189) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 08:45:26 +0000 Received: by rv-out-0910.google.com with SMTP id k15so952987rvb for ; Mon, 10 Sep 2007 01:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=liYDQK4dI9ElKUJZ7sfXuanv3jHp6+4a9va2yLZTX2Y=; b=IVtleSC0gqbn74LwtHHMxBFv5zv82KfvHX/96uUKajFB6t9v4Bf2lNHgBivZ+H4F91LcvQD9U/09cP0hAYC8Nv9jB/lOwhCAbDbwn1TolhnU8xph9H137Nc5uw+I924Mg+Z9pXM5rqXLTP6/2XWAa5mGniE+IbotftjDCLlUXnk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lE0pzScskKwGnrdf0dR3h6Z21CwUHEw5z6NvJAxb1GnHewVGoofGZgl+vMYybYy4sjCudkPOGxTgyugljqwoAbiu7dMxF6MZRjKK4oGQHb2IrddlOfafyxYxcsGVRRhwKbhXB262VE6NLsDpsuK5ud9p1WbC9fpraKP0kzSwka4= Received: by 10.141.159.13 with SMTP id l13mr1760953rvo.1189413906375; Mon, 10 Sep 2007 01:45:06 -0700 (PDT) Received: by 10.140.192.15 with HTTP; Mon, 10 Sep 2007 01:45:06 -0700 (PDT) Message-ID: Date: Mon, 10 Sep 2007 09:45:06 +0100 From: "Peter Reilly" To: "Ant Users List" Subject: Re: Ant uptodate? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org with current ant it is difficult to do exactly what you want, I normally do the following: Pick a file that Sablecc allways changes when it is run - ${targetdir}/lexer/Lex.java for example. Use ant-contrib's outofdate task. Ant 1.7.1 is adding in a "erroronmissingdir" attribute to filesets, this means that one can do: which is more what you want. Peter On 9/10/07, Jan.Materne@rzf.fin-nrw.de wrote: > You can set a property if a file/directory does (not) exist using > and in combination with , . > > The "changed" files you maybe could check with and > in combination with selector or selector. > > > Jan > > >-----Urspr=FCngliche Nachricht----- > >Von: Lionel van den Berg [mailto:lionelv@gmail.com] > >Gesendet: Montag, 10. September 2007 00:46 > >An: user@ant.apache.org > >Betreff: Ant uptodate? > > > >Hi all, > > > >I sent two other emails but I don't think they went through. > > > >I've tried using the ant uptodate and dependset tasks but > >haven't solved my > >problem. I've googled, tried heaps of solutions but still > >can't do it, so > >here is the problem: > > > >Assume for each of the following we are in a base directory. I have: > > > >grammar/*.grammar files. > > > >From a *.grammar file Sablecc will generate .java files (and some .dat > >files) in: > > > >src/*/analysis/ > >src/*/lexer/ > >src/*/node/ > >src/*/parser/ > > > > > >When my Ant script is run, src/ may or may not exist. > > > >What I want to do is just set a property if either src/ does > >not exist or > >any of the files in any of files in grammar/ have been > >modified after any of > >the files in the subdirectories of src/. > > > >Can someone please help me? It seems that this should be fairly simple. > > > >Thanks > > > >Lionel. > > > > --------------------------------------------------------------------- > 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