<?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: Application.cfc Mappings Gotcha</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2008/09/30/applicationcfc-mappings-gotcha/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2008/09/30/applicationcfc-mappings-gotcha/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Julian Halliwell</title>
		<link>https://www.barneyb.com/barneyblog/2008/09/30/applicationcfc-mappings-gotcha/comment-page-1/#comment-132123</link>
		<dc:creator>Julian Halliwell</dc:creator>
		<pubDate>Fri, 10 Oct 2008 16:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=514#comment-132123</guid>
		<description>Hurray, the docs have been corrected.</description>
		<content:encoded><![CDATA[<p>Hurray, the docs have been corrected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian Halliwell</title>
		<link>https://www.barneyb.com/barneyblog/2008/09/30/applicationcfc-mappings-gotcha/comment-page-1/#comment-130795</link>
		<dc:creator>Julian Halliwell</dc:creator>
		<pubDate>Mon, 06 Oct 2008 09:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=514#comment-130795</guid>
		<description>Submitted another reminder to Adobe, and they&#039;ve responded with: &quot;We will be correcting this soon enough.&quot; Sheesh, I wonder what kind of version control/workflow system they have that makes it too complex to just add a couple of slashes. Whatever it is, sticking to it is obviously more important to them than avoiding wasting their customers&#039; time.</description>
		<content:encoded><![CDATA[<p>Submitted another reminder to Adobe, and they've responded with: "We will be correcting this soon enough." Sheesh, I wonder what kind of version control/workflow system they have that makes it too complex to just add a couple of slashes. Whatever it is, sticking to it is obviously more important to them than avoiding wasting their customers' time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian Halliwell</title>
		<link>https://www.barneyb.com/barneyblog/2008/09/30/applicationcfc-mappings-gotcha/comment-page-1/#comment-129471</link>
		<dc:creator>Julian Halliwell</dc:creator>
		<pubDate>Thu, 02 Oct 2008 08:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=514#comment-129471</guid>
		<description>Barney, my experience is the same as Ike&#039;s, that the forward slash is required for all mappings, alphanumeric or otherwise.

It was me who originally reported the mistake in the Livedocs soon after the CF8 release and they did correct their examples fairly promptly. But for some reason the correction got &quot;reverted&quot; some months later, which I again reported. Adobe replied saying they would try and found out what happened and just post my comment in the meantime. But they don&#039;t seem to have done anything to &quot;re-correct&quot; the docs, which means it continues to cause confusion/frustration unless you read the comments.

Cheers
Julian.</description>
		<content:encoded><![CDATA[<p>Barney, my experience is the same as Ike's, that the forward slash is required for all mappings, alphanumeric or otherwise.</p>
<p>It was me who originally reported the mistake in the Livedocs soon after the CF8 release and they did correct their examples fairly promptly. But for some reason the correction got "reverted" some months later, which I again reported. Adobe replied saying they would try and found out what happened and just post my comment in the meantime. But they don't seem to have done anything to "re-correct" the docs, which means it continues to cause confusion/frustration unless you read the comments.</p>
<p>Cheers<br />
Julian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ike</title>
		<link>https://www.barneyb.com/barneyblog/2008/09/30/applicationcfc-mappings-gotcha/comment-page-1/#comment-129251</link>
		<dc:creator>ike</dc:creator>
		<pubDate>Wed, 01 Oct 2008 18:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=514#comment-129251</guid>
		<description>Umm... well you don&#039;t have to be a jerk about it, but no, the point of Application.cfc mappings is to have application-specific mappings, which is entirely different than application relative mappings. Without going at all out of my way to try and find them I&#039;ve seen a dozen or so different blog entries or mailing list threads where someone was royally confused by the fact that they needed to add a forward-slash in front of the name of the mapping (and in my experience that&#039;s been true whether there was an underscore in it or not). So I don&#039;t think it&#039;s unfair to say that it&#039;s nice to be able to simply declare a mapping as addMapping(&quot;coldspring&quot;,&quot;../coldspring&quot;) to avoid all that confusion and to avoid having to manually perform the extra getDirectoryFromPath(getCurrentTemplatePath()). I suppose similar comments from the Grails guys would be acceptable to you tho.</description>
		<content:encoded><![CDATA[<p>Umm&#8230; well you don't have to be a jerk about it, but no, the point of Application.cfc mappings is to have application-specific mappings, which is entirely different than application relative mappings. Without going at all out of my way to try and find them I've seen a dozen or so different blog entries or mailing list threads where someone was royally confused by the fact that they needed to add a forward-slash in front of the name of the mapping (and in my experience that's been true whether there was an underscore in it or not). So I don't think it's unfair to say that it's nice to be able to simply declare a mapping as addMapping("coldspring","../coldspring") to avoid all that confusion and to avoid having to manually perform the extra getDirectoryFromPath(getCurrentTemplatePath()). I suppose similar comments from the Grails guys would be acceptable to you tho.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2008/09/30/applicationcfc-mappings-gotcha/comment-page-1/#comment-129041</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Wed, 01 Oct 2008 05:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=514#comment-129041</guid>
		<description>ike,

Application root relative mappings are the whole point of Application.cfc mappings.  If they weren&#039;t application root relative, you&#039;d just use a server-level mapping.  E.g.:

&lt;cfset THIS_DIR = getDirectoryFromPath(getCurrentTemplatePath()) /&gt;
&lt;cfset this.mappings[&quot;/coldspring&quot;] = THIS_DIR &amp; &quot;lib/coldspring&quot; /&gt;

onTap gives you the plugin directory construct (which is easily accomplished other ways as well), but there&#039;s nothing onTap-ish about relative mappings.</description>
		<content:encoded><![CDATA[<p>ike,</p>
<p>Application root relative mappings are the whole point of Application.cfc mappings.  If they weren't application root relative, you'd just use a server-level mapping.  E.g.:</p>
<p>&lt;cfset THIS_DIR = getDirectoryFromPath(getCurrentTemplatePath()) /&gt;<br />
&lt;cfset this.mappings["/coldspring"] = THIS_DIR &#038; "lib/coldspring" /&gt;</p>
<p>onTap gives you the plugin directory construct (which is easily accomplished other ways as well), but there's nothing onTap-ish about relative mappings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ike</title>
		<link>https://www.barneyb.com/barneyblog/2008/09/30/applicationcfc-mappings-gotcha/comment-page-1/#comment-129034</link>
		<dc:creator>ike</dc:creator>
		<pubDate>Wed, 01 Oct 2008 05:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=514#comment-129034</guid>
		<description>One of the new config directories in version 3.2 of the onTap framework (aside from IoC configs) is for mappings, which is neat. It will actually allow plugins to create their own application-specific mappings when you install them. I don&#039;t expect most plugins to need it, but it&#039;s handy to have. The configs use a method call to set the mapping, so in addition to ensuring that they have that leading slash, it also allows the mappings to be relative from the application&#039;s root directory. :)</description>
		<content:encoded><![CDATA[<p>One of the new config directories in version 3.2 of the onTap framework (aside from IoC configs) is for mappings, which is neat. It will actually allow plugins to create their own application-specific mappings when you install them. I don't expect most plugins to need it, but it's handy to have. The configs use a method call to set the mapping, so in addition to ensuring that they have that leading slash, it also allows the mappings to be relative from the application's root directory. :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
