<?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: Temp Files = No More Dumb Commits</title>
	<atom:link href="http://twoguysarguing.wordpress.com/2009/03/26/temp-files-no-more-dumb-commits/feed/" rel="self" type="application/rss+xml" />
	<link>http://twoguysarguing.wordpress.com/2009/03/26/temp-files-no-more-dumb-commits/</link>
	<description>colorful back and forth from two highly opinionated programmers</description>
	<lastBuildDate>Fri, 17 May 2013 10:05:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: benjaminplee</title>
		<link>http://twoguysarguing.wordpress.com/2009/03/26/temp-files-no-more-dumb-commits/#comment-19</link>
		<dc:creator><![CDATA[benjaminplee]]></dc:creator>
		<pubDate>Fri, 27 Mar 2009 13:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://twoguysarguing.wordpress.com/?p=99#comment-19</guid>
		<description><![CDATA[Its good to hear that I am not the only one and I really like your idea of using the test name as the file prefix.  That should be helpful in tracing any problems if they come up.

Also, I am assuming you meant FileUtils.writeStringToFile(temp, streamContents);  ;-)

Thanks for the comment.]]></description>
		<content:encoded><![CDATA[<p>Its good to hear that I am not the only one and I really like your idea of using the test name as the file prefix.  That should be helpful in tracing any problems if they come up.</p>
<p>Also, I am assuming you meant FileUtils.writeStringToFile(temp, streamContents);  ;-)</p>
<p>Thanks for the comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BrianTheSmith</title>
		<link>http://twoguysarguing.wordpress.com/2009/03/26/temp-files-no-more-dumb-commits/#comment-18</link>
		<dc:creator><![CDATA[BrianTheSmith]]></dc:creator>
		<pubDate>Fri, 27 Mar 2009 12:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://twoguysarguing.wordpress.com/?p=99#comment-18</guid>
		<description><![CDATA[oops that should be 

FileUtils.writeStringtoFile(streamContents);

I should have looked at the JavaDocs first :p]]></description>
		<content:encoded><![CDATA[<p>oops that should be </p>
<p>FileUtils.writeStringtoFile(streamContents);</p>
<p>I should have looked at the JavaDocs first :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BrianTheSmith</title>
		<link>http://twoguysarguing.wordpress.com/2009/03/26/temp-files-no-more-dumb-commits/#comment-17</link>
		<dc:creator><![CDATA[BrianTheSmith]]></dc:creator>
		<pubDate>Fri, 27 Mar 2009 12:53:38 +0000</pubDate>
		<guid isPermaLink="false">http://twoguysarguing.wordpress.com/?p=99#comment-17</guid>
		<description><![CDATA[We use the File.createTempFile method all the time when testing Eclipse Plugins.  We end up loading lots of files from plugins in our tests.

so we end up doing something like this (using some Util classes from apache commons io)

InputStream stream = getClass().getResourceAsStream(&quot;resourcePathHere&quot;);
String streamContents = IOUtils.toString(stream);
File temp = File.createTempFile(&quot;IAlwaysUseTheTestMethodName&quot;, &quot;tmp&quot;);
FileUtils.toFile(streamContents);
IOUtils.closeQuietly(stream);
temp.deleteOnExit();

//Do Something with the file]]></description>
		<content:encoded><![CDATA[<p>We use the File.createTempFile method all the time when testing Eclipse Plugins.  We end up loading lots of files from plugins in our tests.</p>
<p>so we end up doing something like this (using some Util classes from apache commons io)</p>
<p>InputStream stream = getClass().getResourceAsStream(&#8220;resourcePathHere&#8221;);<br />
String streamContents = IOUtils.toString(stream);<br />
File temp = File.createTempFile(&#8220;IAlwaysUseTheTestMethodName&#8221;, &#8220;tmp&#8221;);<br />
FileUtils.toFile(streamContents);<br />
IOUtils.closeQuietly(stream);<br />
temp.deleteOnExit();</p>
<p>//Do Something with the file</p>
]]></content:encoded>
	</item>
</channel>
</rss>
