Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 69126 invoked from network); 18 Aug 2004 13:56:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Aug 2004 13:56:16 -0000 Received: (qmail 96622 invoked by uid 500); 18 Aug 2004 13:55:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 96527 invoked by uid 500); 18 Aug 2004 13:55:23 -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 96371 invoked by uid 99); 18 Aug 2004 13:55:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.223.178.27] (HELO maillnx-us312.fmr.com) (192.223.178.27) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 18 Aug 2004 06:55:17 -0700 Received: from MSGMMKSM01WIN.DMN1.FMR.COM (MSGMMKSM01WIN.dmn1.fmr.com [10.33.139.32] (may be forged)) by maillnx-us312.fmr.com (Switch-3.1.2/Switch-3.1.0) with SMTP id i7IDtExF024793 for ; Wed, 18 Aug 2004 09:55:14 -0400 Received: from virmmk111nts.fmr.com (172.25.106.96) by MSGMMKSM01WIN.DMN1.FMR.COM (Sigaba Gateway v3.83) with ESMTP id 187349; Wed, 18 Aug 2004 09:55:15 -0400 Received: from MSGMMKCLE2WIN.fmr.com ([10.33.152.61]) by MSGMROIM01WIN.DMN1.FMR.COM with Microsoft SMTPSVC(5.0.2195.6713); Wed, 18 Aug 2004 09:54:18 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 Content-Class: urn:content-classes:message Subject: RE: Loadfile not loading file MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 18 Aug 2004 09:54:18 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Loadfile not loading file Thread-Index: AcSFKj2NYM9tTGCkT+CrJY7Dg8rNvAAAH9hw From: "Dick, Brian E." To: "Ant Users List" X-OriginalArrivalTime: 18 Aug 2004 13:54:18.0504 (UTC) FILETIME=[DB260880:01C4852A] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N That worked. Thanks. -----Original Message----- From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]=20 Sent: Wednesday, August 18, 2004 9:49 AM To: user@ant.apache.org Subject: AW: Loadfile not loading file Insert a after the=20 statemtent. The recorder wont flush the conent when you do the action=3Dstop. When executing the example with -debug you=B4ll see only --8-<-----8-<-----8-<-----8-<--- myexec: [echo] Ant-Version: Apache Ant version 1.7alpha compiled on July 15 2004 setting a recorder for name log.txt [echo] ERROR setting a recorder for name log.txt [loadfile] loading C:\TEMP\anttest\log.txt into property log.property [loadfile] file size =3D 0 Property ${log.property} has not been set --8-<-----8-<-----8-<-----8-<--- no flush before as you could think after reading RecorderEntry.taskFinished() RecEntry:0157: public void taskFinished(BuildEvent event) { RecEntry:0158: log("<<< TASK FINISHED -- " + event.getTask(), Project.MSG_DEBUG); RecEntry:0159: out.flush(); RecEntry:0160: } Here my example Ant-Version: ${ant.version} File = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D log.property =3D ${log.property} log.error =3D ${log.error} Jan > -----Urspr=FCngliche Nachricht----- > Von: Dick, Brian E. [mailto:Brian.Dick@FMR.com] > Gesendet am: Mittwoch, 18. August 2004 15:31 > An: Ant Users List > Betreff: RE: Loadfile not loading file >=20 > log.txt contains the string ERROR > displays "${log.property}"=20 > (it's not set) > displays "${log.error}" (it's not = set) >=20 > You can test the code below with a minor change. Replace the=20 > exec task with >=20 > >=20 > -----Original Message----- > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]=20 > Sent: Wednesday, August 18, 2004 9:21 AM > To: user@ant.apache.org > Subject: AW: Loadfile not loading file >=20 >=20 > Have you checked: > - the log.txt (using viewing into that) > - the log.property (using ) > - the log.error (using ) >=20 > Are their content what you are expecting? >=20 >=20 > Jan >=20 > > -----Urspr=FCngliche Nachricht----- > > Von: Dick, Brian E. [mailto:Brian.Dick@FMR.com] > > Gesendet am: Mittwoch, 18. August 2004 15:17 > > An: user@ant.apache.org > > Betreff: Loadfile not loading file > >=20 > > I have an executable that does not set the exit code but does put > > "ERROR" in its stdout. I'm trying use the loadfile task to=20 > > load the file > > produced by the record task, but loadfile is not setting=20 > the property. > > Below is a simplified version of my code. Can someone tell=20 > me why this > > code doesn't work? Is there another way to accomplish this? > >=20 > > > > > > > > > > > > > > > > > > > > > >=20 > >=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 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org