I think I figured it out... Here's my test
<target name="teststuff">
<foreach item="File" property="filename">
<in>
<items>
<include name="test/**/intest.txt"/>
</items>
</in>
<do>
<loadfile file="${filename}" property="contents">
<filterchain>
<replacetokens>
<token key="NOW" value="${DSTAMP}"/>
</replacetokens>
</filterchain>
</loadfile>
<echo file="${filename}" message="${contents}"/>
</do>
</foreach>
</target>
Applying this to version builds, you can put @SVNREV@ in fields of your
AssemblyInfo.cs'es, use the method above to replace that with detail
from the moment, and then get it built into your assemblies.
-Mark
This e-mail message, and any attachments, is intended only for the use of the
individual or entity identified in the alias address of this message and may
contain information that is confidential, privileged and subject to legal
restrictions and penalties regarding its unauthorized disclosure and use. Any
unauthorized review, copying, disclosure, use or distribution is strictly
prohibited. If you have received this e-mail message in error, please notify
the sender immediately by reply e-mail and delete this message, and any
attachments, from your system. Thank you.
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Modrall
Sent: Wednesday, January 24, 2007 10:50 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Any way to apply <filterchain> in place?
Hi...
I was thinking of using <replacetoken> to swap in some build
time and version info at nant time in my AssemblyInfo.cs'es, but
according to the docs, those elements are only applicable to <move> and
<copy>. I'd like to simply do the substitutions in place. I can always
svn revert when the build is done.
Is there any way to do that, or would I need a custom task?
Thanks
-mark
This e-mail message, and any attachments, is intended only for the use
of the individual or entity identified in the alias address of this
message and may contain information that is confidential, privileged and
subject to legal restrictions and penalties regarding its unauthorized
disclosure and use. Any unauthorized review, copying, disclosure, use or
distribution is strictly prohibited. If you have received this e-mail
message in error, please notify the sender immediately by reply e-mail
and delete this message, and any attachments, from your system. Thank
you.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users