Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 95104 invoked from network); 16 Nov 2003 11:23:22 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Nov 2003 11:23:22 -0000 Received: (qmail 16618 invoked by uid 500); 16 Nov 2003 11:22:44 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 16594 invoked by uid 500); 16 Nov 2003 11:22:44 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 90539 invoked from network); 15 Nov 2003 19:50:12 -0000 Message-ID: <1068925820.3fb6837c8d9bd@webmail.neptune.lunarpages.com> Date: Sat, 15 Nov 2003 14:50:20 -0500 From: "J. Xue" Reply-to: Ant Users List To: Ant Users List Subject: Re: how to only do stuff if javac compiled something? References: <200311141836.24590.lists@caoilte.org> <200311141807.45758.peter.reilly@corvil.com> <200311142013.22789.lists@caoilte.org> In-Reply-To: <200311142013.22789.lists@caoilte.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 68.100.240.63 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - neptune.lunarpages.com X-AntiAbuse: Original Domain - ant.apache.org X-AntiAbuse: Originator/Caller UID/GID - [32001 502] / [47 12] X-AntiAbuse: Sender Address Domain - manifoldronin.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Quoting Caoilte O'Connor : > thanks I'll play with that over the weekend. > > but is this really something no one else has ever felt the > need for? I'm starting to feel like I didn't think my build > process through properly. I am with you, Caoilte. 8-) In one of my build scripts, I have a "build" target depending on "compile" and "inc-build". "inc-build" reads from a version.properties file, increases a build.number property in it, and writes it back. Obviously, I'd like to have inc-build run only when there was at least one file compiled during "compile". So far I haven't figured out a satisfactory way of doing this. The closest I could get is using as Matt Benson pointed out in his message. The problems is does not have exactly the same dependency check as does. When 1.6 beta came out, I felt the Selector can be used for that (create a timestamp just before you start compile, and afterwards try to select the class files modified after the timestamp), but then I couldn't figure out a way to test if a fileset is empty. --J.X. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org