ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject [PATCH] srcFile to echo
Date Mon, 03 Dec 2001 22:48:13 GMT

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,.

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}"/>

Thoughts?


Mime
View raw message