<?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: Modifying web.xml in Grails</title>
	<atom:link href="http://www.javathinking.com/2009/04/modifying-webxml-in-grails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javathinking.com/2009/04/modifying-webxml-in-grails/</link>
	<description>Java and software development related thoughts</description>
	<lastBuildDate>Thu, 29 Dec 2011 20:59:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mahome</title>
		<link>http://www.javathinking.com/2009/04/modifying-webxml-in-grails/comment-page-1/#comment-681</link>
		<dc:creator>mahome</dc:creator>
		<pubDate>Wed, 01 Apr 2009 07:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.javathinking.com/?p=303#comment-681</guid>
		<description>You could also hook (http://grails.org/doc/1.0.x/guide/4.%20The%20Command%20Line.html#4.3%20Hooking%20into%20Events) into the webXml-Event and do the modification depending on the environment:

_Events.groovy:
---------------
import grails.util.GrailsUtil
eventWebXmlEnd = { String tmpfile -&gt;
	switch(GrailsUtil.environment) { 
		case &quot;development&quot;:
			// do dev modification
			break 
		case &quot;production&quot;: 
			// do prod modification
			break 
	}</description>
		<content:encoded><![CDATA[<p>You could also hook (<a href="http://grails.org/doc/1.0.x/guide/4.%20The%20Command%20Line.html#4.3%20Hooking%20into%20Events" rel="nofollow">http://grails.org/doc/1.0.x/guide/4.%20The%20Command%20Line.html#4.3%20Hooking%20into%20Events</a>) into the webXml-Event and do the modification depending on the environment:</p>
<p>_Events.groovy:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;<br />
import grails.util.GrailsUtil<br />
eventWebXmlEnd = { String tmpfile -&gt;<br />
	switch(GrailsUtil.environment) {<br />
		case &#8220;development&#8221;:<br />
			// do dev modification<br />
			break<br />
		case &#8220;production&#8221;:<br />
			// do prod modification<br />
			break<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.javathinking.com/2009/04/modifying-webxml-in-grails/comment-page-1/#comment-680</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Tue, 31 Mar 2009 21:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.javathinking.com/?p=303#comment-680</guid>
		<description>I am using the morph-deploy plugin, but I don&#039;t see any mention of it adding security constraints to web.xml - it only mentions adding jndi datasource and mail session. I will have a look at the source code for the plugin and see if it handles security constraints, and if not I&#039;ll look into making a contribution...</description>
		<content:encoded><![CDATA[<p>I am using the morph-deploy plugin, but I don&#8217;t see any mention of it adding security constraints to web.xml &#8211; it only mentions adding jndi datasource and mail session. I will have a look at the source code for the plugin and see if it handles security constraints, and if not I&#8217;ll look into making a contribution&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: altosz</title>
		<link>http://www.javathinking.com/2009/04/modifying-webxml-in-grails/comment-page-1/#comment-679</link>
		<dc:creator>altosz</dc:creator>
		<pubDate>Tue, 31 Mar 2009 15:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.javathinking.com/?p=303#comment-679</guid>
		<description>Look at morph-deploy plugin - it does what you need, unless you do not have several environments on morph for one app.</description>
		<content:encoded><![CDATA[<p>Look at morph-deploy plugin &#8211; it does what you need, unless you do not have several environments on morph for one app.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

