Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 97955 invoked from network); 28 Jul 2008 21:53:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jul 2008 21:53:09 -0000 Received: (qmail 72580 invoked by uid 500); 28 Jul 2008 21:53:05 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 72546 invoked by uid 500); 28 Jul 2008 21:53:05 -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 72535 invoked by uid 99); 28 Jul 2008 21:53:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2008 14:53:05 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [203.96.73.230] (HELO mail.dynamic-controls.co.nz) (203.96.73.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2008 21:52:08 +0000 Received: from nz3ks34ch.dcl.nz (Not Verified[192.168.12.13]) by mail.dynamic-controls.co.nz with MailMarshal (v6,2,0,2977) id ; Tue, 29 Jul 2008 09:51:59 +1200 In-Reply-To: <488D8C7A.6070904@pcvisit.de> To: "Ant Users List" Subject: Re: Detecting modified times and exiting a target MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.0.3 September 26, 2003 Message-ID: From: RLancaster@dynamiccontrols.com Date: Tue, 29 Jul 2008 09:51:56 +1200 X-MIMETrack: Serialize by Router on NZ3KNH01CH/IVCR(Release 6.5.1|January 21, 2004) at 29/07/2008 09:51:58 a.m., Serialize complete at 29/07/2008 09:51:58 a.m. Content-Type: multipart/alternative; boundary="=_alternative 00781C6DCC257494_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 00781C6DCC257494_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Not what you were asking for - but: Use cpptask from the ant-contrib project - this handles all the logic of = compiling C and CPP, and also has some plugins for fortran. If handles al= l=20 the dependancy analysis for the Code and if your using a standard compile= r=20 gcc, msvc it's all done for you.... all you have to do is configure it ;-= ) Andr=E9 Pilz =20 28/07/2008 09:08 p.m. Please respond to "Ant Users List" To Ant Users List cc Subject Re: Detecting modified times and exiting a target Already tested the task? Shug Boabby schrieb: > Hi all, >=20 > I am utterly failing at attempting to implement some logic in an ant > script, I was hoping somebody here could help. >=20 > I have a target which calls an external (non-standard) compiler. The > compiler takes a directory as a parameter and recursively compiles > everything inside that folder to an output folder, but it is not smart > enough to know when it is not necessary to do the compilation. (i.e. 2 > calls to the target will result in the compilation step being started > from scratch each time, despite the source folder not changing). >=20 > In this target, I need to implement the following logic:- >=20 > - get the latest modified time of the source folder (looking > recursively at all files) > - get the latest modified time of the output folder (looking > recursively at all files) > - if the output folder has been modified since the source folder, then > exit the task >=20 > Could somebody please help me implement this in ant-speak? >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org _______________________________________________________________________ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender of this email. _______________________________________________________________________ This e-mail message has been scanned and cleared by MailMarshal at www.dynamiccontrols.com --=_alternative 00781C6DCC257494_=--