Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 96031 invoked from network); 3 Jan 2001 01:50:49 -0000 Received: from unknown (HELO Exchange1.buymedia.com) (206.216.192.6) by h31.sny.collab.net with SMTP; 3 Jan 2001 01:50:49 -0000 Received: by Exchange1.buymedia.com with Internet Mail Service (5.5.2650.21) id ; Tue, 2 Jan 2001 17:49:38 -0800 Message-ID: <1067BB807B9721429D2B8120699C249C30859D@Exchange1.buymedia.com> From: "Duffey, Kevin" To: "'ant-user@jakarta.apache.org'" Subject: Conditional use? Date: Tue, 2 Jan 2001 17:49:14 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi, Is it possible in a build file to specify conditional capabilities? For example, I want to get the latest source from VSS, then do a build. If there is no difference in the build compared to the current files on the disk, then the rest of the build is terminated. The reason is, if ANY files changed, I want the build to send out an email notifying individuals that a build is ready for testing. But if nothing changed, then I don't want it to do anything else..there is no reason to notify anyone, and no reason to deploy the build to x number of machines. Only if an actual build took place. Even better..I would like to copy only the files that have changed (for speed) so that it doesn't need to copy the whole set of compiled classes, www pages, etc. It seems to me that the "last" target doesn't follow this rule. I don't know why, maybe its just me, but I have a build script with 4 targets. The first 3 targets work as expected..if a file is the same, it doesn't compile it, or copy it, or what ever. The last target, which is a "copy" command to copy a dir from one place to another, should only copy the files that are changed, but it seems to copy the whole dir, despite that most of the files are the same. Thanks.