<?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/"
		>
<channel>
	<title>Comments on: Use a classpath resource or kill your application&#8217;s portability</title>
	<atom:link href="http://blog.markturansky.com/archives/141/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.markturansky.com/archives/141</link>
	<description>software architecture &#38; engineering, code hints, sometimes philosophy, photography, life, etc.</description>
	<lastBuildDate>Sun, 20 Jun 2010 07:51:38 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: skelter</title>
		<link>http://blog.markturansky.com/archives/141/comment-page-1#comment-1149</link>
		<dc:creator>skelter</dc:creator>
		<pubDate>Fri, 17 Jul 2009 05:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.markturansky.com/archives/141#comment-1149</guid>
		<description>I recommend pulling from a config path set by a system property with a reasonable default.

We have configuration set in resource bundles and it has been painful.  Worse, somewhere along the way, multiple &#039;systems&#039; were added to pull from one resource bundle or another based on machine name or user name.  As we struggle to figure out which configuration bundle is the one in effect, changing it is slowed by having to go through the compile phase first.  

Configuration should be external.

It looks like the solution we are settling on is a relative path in a reasonable default root that can be adjusted via a system property.  This makes it easy to change a CI build which may be running multiple branches (and configurations) on the same machine on the same user account.

So..have you encountered collisions in the java.io.temp dir yet?

-s</description>
		<content:encoded><![CDATA[<p>I recommend pulling from a config path set by a system property with a reasonable default.</p>
<p>We have configuration set in resource bundles and it has been painful.  Worse, somewhere along the way, multiple &#8217;systems&#8217; were added to pull from one resource bundle or another based on machine name or user name.  As we struggle to figure out which configuration bundle is the one in effect, changing it is slowed by having to go through the compile phase first.  </p>
<p>Configuration should be external.</p>
<p>It looks like the solution we are settling on is a relative path in a reasonable default root that can be adjusted via a system property.  This makes it easy to change a CI build which may be running multiple branches (and configurations) on the same machine on the same user account.</p>
<p>So..have you encountered collisions in the java.io.temp dir yet?</p>
<p>-s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Turansky</title>
		<link>http://blog.markturansky.com/archives/141/comment-page-1#comment-1144</link>
		<dc:creator>Mark Turansky</dc:creator>
		<pubDate>Fri, 10 Jul 2009 21:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.markturansky.com/archives/141#comment-1144</guid>
		<description>That&#039;s true, Matt.  I also like the forward slash trick because it works really well on Windows.  I used it when I wrote an example about &lt;a href=&quot;http://blog.markturansky.com/archives/21&quot; rel=&quot;nofollow&quot;&gt;Java bootstrapping&lt;/a&gt; where the example looks for &quot;/usr/local/src.&quot;  This defaults to &quot;C:/usr/local/src&quot; on Windows.</description>
		<content:encoded><![CDATA[<p>That&#8217;s true, Matt.  I also like the forward slash trick because it works really well on Windows.  I used it when I wrote an example about <a href="http://blog.markturansky.com/archives/21" rel="nofollow">Java bootstrapping</a> where the example looks for &#8220;/usr/local/src.&#8221;  This defaults to &#8220;C:/usr/local/src&#8221; on Windows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Passell</title>
		<link>http://blog.markturansky.com/archives/141/comment-page-1#comment-1143</link>
		<dc:creator>Matt Passell</dc:creator>
		<pubDate>Fri, 10 Jul 2009 19:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.markturansky.com/archives/141#comment-1143</guid>
		<description>Even though they&#039;re not as good as your solution, relative paths are still more portable than absolute ones.  From a platform-portability standpoint (which I know wasn&#039;t what you were covering), I&#039;ve tried to encourage people to use forward-slashes everywhere, since Java is fine with forward-slash paths on Windows but not with backward-slash paths on Unix/Linux.  You probably knew that already, but perhaps someone else reading this didn&#039;t.

--Matt</description>
		<content:encoded><![CDATA[<p>Even though they&#8217;re not as good as your solution, relative paths are still more portable than absolute ones.  From a platform-portability standpoint (which I know wasn&#8217;t what you were covering), I&#8217;ve tried to encourage people to use forward-slashes everywhere, since Java is fine with forward-slash paths on Windows but not with backward-slash paths on Unix/Linux.  You probably knew that already, but perhaps someone else reading this didn&#8217;t.</p>
<p>&#8211;Matt</p>
]]></content:encoded>
	</item>
</channel>
</rss>
