NAnt question: evaluate NAnt expressions in text read from file
I have a NAnt problem: I want to read file from text (actually xmlpeek from an XML document), and evaluate the NAnt expressions defined in the text. So for example:
FILE: Input.txt:
This is a ${word} text!
FILE: PropertyTest.build:
<project default="go">
<target name="go">
<property name="word" value="nice"/>
<loadfile file="input.txt" property="message" />
<echo message="${message}"/>
</target>
</project>
CURRENT output:
This is a ${word} text!
WANTED output:
This is a nice text!
Any ideas?