<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Replace file content in NAnt task</title>
	<atom:link href="http://maonet.wordpress.com/2008/08/12/replace-file-content-in-nant-task/feed/" rel="self" type="application/rss+xml" />
	<link>http://maonet.wordpress.com/2008/08/12/replace-file-content-in-nant-task/</link>
	<description>IOC(SM):MOC(RM):TDD(NU):SCC(TFS):ORM(L2S):JSL(Jq):CIS(CC)</description>
	<lastBuildDate>Thu, 19 Nov 2009 19:41:20 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Frank Mao</title>
		<link>http://maonet.wordpress.com/2008/08/12/replace-file-content-in-nant-task/#comment-599</link>
		<dc:creator>Frank Mao</dc:creator>
		<pubDate>Fri, 04 Sep 2009 14:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://maonet.wordpress.com/?p=182#comment-599</guid>
		<description>I didn&#039;t know know to use token in Nant when I post this. Yes, token is very useful for replace file content, and is the standard way to localize dev/deploy environment.

Thanks Luke.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t know know to use token in Nant when I post this. Yes, token is very useful for replace file content, and is the standard way to localize dev/deploy environment.</p>
<p>Thanks Luke.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://maonet.wordpress.com/2008/08/12/replace-file-content-in-nant-task/#comment-596</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Thu, 03 Sep 2009 23:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://maonet.wordpress.com/?p=182#comment-596</guid>
		<description>Try again

&lt;target name=&quot;restore.db_name&quot;&gt;
	&lt;loadfile file=&quot;${dir.template}\template.db_name.sql&quot; property=&quot;restore.db.sql.db_name&quot;&gt;
		&lt;filterchain&gt;
			&lt;replacetokens&gt;
				&lt;!-- this looks for tokens like @blah.blah@ in the file being loaded and replaces them--&gt;
				&lt;token key=&quot;restore.db.prefix&quot; value=&quot;${restore.db.prefix}&quot; /&gt;
				&lt;token key=&quot;backup.file.path&quot; value=&quot;${backup.file.path}&quot; /&gt;
			&lt;/replacetokens&gt;
		&lt;/filterchain&gt;
	&lt;/loadfile&gt;
	&lt;property name=&quot;current.db&quot; value=&quot;db_name&quot; /&gt;
	&lt;property name=&quot;current.log&quot; value=&quot;${dir.log}\${restore.db.logfile.prefix}_db_name.log&quot; /&gt;
	&lt;property name=&quot;current.file&quot; value=&quot;${dir.template}\restore.db_name.tmp.sql&quot; /&gt;
	&lt;delete if=&quot;${file::exists(current.file)}&quot; file=&quot;${current.file}&quot; /&gt;
	&lt;echo file=&quot;${current.file}&quot;&gt;${restore.db.sql.db_name}&lt;/echo&gt;
	&lt;call target=&quot;restore.database&quot; /&gt;
&lt;/target&gt;</description>
		<content:encoded><![CDATA[<p>Try again</p>
<p>&lt;target name=&#8221;restore.db_name&#8221;&gt;<br />
	&lt;loadfile file=&#8221;${dir.template}\template.db_name.sql&#8221; property=&#8221;restore.db.sql.db_name&#8221;&gt;<br />
		&lt;filterchain&gt;<br />
			&lt;replacetokens&gt;<br />
				&lt;!&#8211; this looks for tokens like @blah.blah@ in the file being loaded and replaces them&#8211;&gt;<br />
				&lt;token key=&#8221;restore.db.prefix&#8221; value=&#8221;${restore.db.prefix}&#8221; /&gt;<br />
				&lt;token key=&#8221;backup.file.path&#8221; value=&#8221;${backup.file.path}&#8221; /&gt;<br />
			&lt;/replacetokens&gt;<br />
		&lt;/filterchain&gt;<br />
	&lt;/loadfile&gt;<br />
	&lt;property name=&#8221;current.db&#8221; value=&#8221;db_name&#8221; /&gt;<br />
	&lt;property name=&#8221;current.log&#8221; value=&#8221;${dir.log}\${restore.db.logfile.prefix}_db_name.log&#8221; /&gt;<br />
	&lt;property name=&#8221;current.file&#8221; value=&#8221;${dir.template}\restore.db_name.tmp.sql&#8221; /&gt;<br />
	&lt;delete if=&#8221;${file::exists(current.file)}&#8221; file=&#8221;${current.file}&#8221; /&gt;<br />
	&lt;echo file=&#8221;${current.file}&#8221;&gt;${restore.db.sql.db_name}&lt;/echo&gt;<br />
	&lt;call target=&#8221;restore.database&#8221; /&gt;<br />
&lt;/target&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://maonet.wordpress.com/2008/08/12/replace-file-content-in-nant-task/#comment-595</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Thu, 03 Sep 2009 23:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://maonet.wordpress.com/?p=182#comment-595</guid>
		<description>The following target loads some template sql from a file, replaces some tokens, sets some variables and hands off to a generic restore task.  This is used by us to customise database restores for targeted testing environments.  It&#039;s all nant.

&lt;pre&gt;

	
		
			
				&lt;!-- this looks for tokens like @blah.blah@ in the file being loaded and replaces them--&gt;
				
				
			
		
	
	
	
	
	
	${restore.db.sql.db_name}
	

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>The following target loads some template sql from a file, replaces some tokens, sets some variables and hands off to a generic restore task.  This is used by us to customise database restores for targeted testing environments.  It&#8217;s all nant.</p>
<pre>

				<!-- this looks for tokens like @blah.blah@ in the file being loaded and replaces them-->

	${restore.db.sql.db_name}
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
