Re: [m2] Is there any way to override the default filter pattern for resources?

2006-05-01 Thread Carlos Sanchez
About the JSP use case, although you could filter the entire set of jsps, based on the info you gave I still think it's a bad idea. You would need to package different war files for different deployments. I like more the idea of a common war with external configuration based on the stage, profile

Re: [m2] Is there any way to override the default filter pattern for resources?

2006-04-30 Thread Colin Sampaleanu
Carlos, It's not just JSPs first of all. ${} is a pretty common syntax used for various templating and expression evaluation needs. For example, you might see that in a Spring application context file when somebody uses PropertyPlaceHolderConfigurer to externalize some values to a separate

Re: [m2] Is there any way to override the default filter pattern for resources?

2006-04-29 Thread Carlos Sanchez
Colin, can you explain what's the use case here? I don't see the probelm with JSPs because you would at most filter the web.xml setting a parameter that is later accessed at runtime from the jsps. I can't think about a use case where you would need to filter all the jsps at build time. On 4/29/0

Re: [m2] Is there any way to override the default filter pattern for resources?

2006-04-29 Thread Colin Sampaleanu
Wayne, This is not really true any longer, as of this fix: http://jira.codehaus.org/browse/MWAR-12 you can filter with the WAR task too. In any case, I was making a general point about conflicting with application template files of any sort (not just JSPs) that use the ${} syntax. It's a

Re: [m2] Is there any way to override the default filter pattern for resources?

2006-04-29 Thread Colin Sampaleanu
On 4/29/2006 4:55 PM, Simon Kitching wrote: On Sat, 2006-04-29 at 16:09 -0400, Colin Sampaleanu wrote: Hi, When turning on filtering for resources in Maven2, is there any way to override the default filter string pattern of '${token}'? I can't find any mention of any way to customize thi

Re: [m2] Is there any way to override the default filter pattern for resources?

2006-04-29 Thread Wayne Fay
JSP files etc are not "resources" but rather should be stored in the /src/main/webapp folder and thus not processed as "resources". So I'll disagree with your statement. And I have no idea how/where to modify the "default filter string pattern" if it is even possible. Wayne On 4/29/06, Colin Sa

Re: [m2] Is there any way to override the default filter pattern for resources?

2006-04-29 Thread Simon Kitching
On Sat, 2006-04-29 at 16:09 -0400, Colin Sampaleanu wrote: > Hi, > > When turning on filtering for resources in Maven2, is there any way to > override the default filter string pattern of '${token}'? I can't find > any mention of any way to customize this, in any docs. > > The use of ${token}

[m2] Is there any way to override the default filter pattern for resources?

2006-04-29 Thread Colin Sampaleanu
Hi, When turning on filtering for resources in Maven2, is there any way to override the default filter string pattern of '${token}'? I can't find any mention of any way to customize this, in any docs. The use of ${token} as a token is IMHO a really bad choice, given the fact that it's such