Anyone offended if I sync up the <echo> task with the Ant <echo> task,
allowing it to echo to a file?

This would entail adding two properties:
file: filename to write to
append: boolean, default = false

http://ant.apache.org/manual/CoreTasks/echo.html

I need to recursively append values to a number of AssemblyInfo.cs files
(rather than re-creating them).  This would allow me to do this:

<foreach item="File" property="filename">
<in>
        <items>
                <includes name="**/AssemblyInfo.cs"" />
        </items>
</in>
<do>
        <echo file="${filename}" append="true">
                [assembly: CustomAssemblyAttribute("foo")]
        </echo>
</do>
</foreach>

Matt.


------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to