You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jan Torben Heuer <jt...@mail2003.dnsalias.org> on 2007/07/29 20:48:26 UTC

[eclipse-wtp] How to handle configfiles with ${parameter}

Hi,

i'd like to use ${parameters} in my WEB-INF/web.xml and other configuration
files.

If I do a mvn tomat:deploy everything is fine, my files are filtered.

But I cannot debug my project inside eclipse, because I would need filtered
files, however I have ${parameter} expression in this files...


How do you handle this? It seems to be impossible to tell wtp using
the /target/... folder instead :-(


Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [eclipse-wtp] How to handle configfiles with ${parameter}

Posted by Stephen Coy <st...@resolvesw.com>.
Hi,

The trick here is to put your source web.xml file in another  
directory (such as src/main/resource2) and configure the war plugin  
as described at <http://maven.apache.org/plugins/maven-war-plugin/ 
examples/adding-filtering-webresources.html>.

Then you can use the war:inplace goal to build the correct version of  
things in your normal src/main/webapp directory tree, which can then  
be "hot-deployed" to your favourite application server.

Cheers,

Steve Coy

On 30/07/2007, at 4:48 AM, Jan Torben Heuer wrote:

> Hi,
>
> i'd like to use ${parameters} in my WEB-INF/web.xml and other  
> configuration
> files.
>
> If I do a mvn tomat:deploy everything is fine, my files are filtered.
>
> But I cannot debug my project inside eclipse, because I would need  
> filtered
> files, however I have ${parameter} expression in this files...
>
>
> How do you handle this? It seems to be impossible to tell wtp using
> the /target/... folder instead :-(
>
>
> Jan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org