Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 75701 invoked from network); 7 Dec 2001 08:05:34 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Dec 2001 08:05:34 -0000 Received: (qmail 12645 invoked by uid 97); 7 Dec 2001 08:05:45 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 12602 invoked by uid 97); 7 Dec 2001 08:05:44 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 12590 invoked from network); 7 Dec 2001 08:05:44 -0000 Message-ID: <015901c17ef6$e80b6500$c543d6d1@compaq> Reply-To: "Magesh Umasankar" From: "Magesh Umasankar" To: "Ant Developers List" References: <000801c17c4c$97c5b5c0$0201a8c0@nordwand> <014b01c17ef6$0b742460$c543d6d1@compaq> Subject: Re: [PATCH] srcFile to echo Date: Fri, 7 Dec 2001 03:12:24 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N From: "Magesh Umasankar" > From: "Steve Loughran" > > > > > I had this irresistible urge to print the output of a program to the > screen. > > > > This patch adds a srcFile attribute to Echo; if set the source file is > read > > in (default encoding) and replaces the message test,. > > +1 > > > I am not actually sure if this is the best approach. A more general > purpose > > approach would be to have > > > > and have the property bound > > to the contents of the file. > > > > Echoing then becomes > > +1 > > The former does not hinder development of the latter. Some might > prefer to just display the file and forget about it instead of loading it > up in memory as a property. > Of course whatever value was previously set for message attribute would be trumped by srcFile. Was this what your concern was? If so, seems to be the best way to go. Magesh -- To unsubscribe, e-mail: For additional commands, e-mail: