From: "Magesh Umasankar" <[EMAIL PROTECTED]> > From: "Steve Loughran" <[EMAIL PROTECTED]> > > > > > 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 > > > > <loadfile name="foo" srcFile="somefile.txt" /> and have the property bound > > to the contents of the file. > > > > Echoing then becomes <echo message="${foo}"/> > > +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, <loadfile> seems to be the best way to go. Magesh -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>