You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kevin Stembridge <ke...@db.com> on 2007/06/04 17:16:02 UTC
Specifying inclusions/exclusions from filtering resources
Hi all,
Is there a way to specify that only some files within a given directory
hierarchy get filtered when resources are copied?
And what about specifically including or excluding certain properties from
being filtered?
Cheers,
Kevin
---
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
Re: Specifying inclusions/exclusions from filtering resources
Posted by Kevin Stembridge <ke...@db.com>.
Hi Jo,
Thanks for the advice. Works perfectly for me.
Cheers,
Kevin
"Jo Vandermeeren" <jo...@gmail.com>
04/06/2007 16:30
Please respond to
"Maven Users List" <us...@maven.apache.org>
To
"Maven Users List" <us...@maven.apache.org>
cc
Subject
Re: Specifying inclusions/exclusions from filtering resources
Hi Kevin,
You can define separate sets for resources that need to be filtered.
More on includes/excludes here:
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html
Example..
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude> WeOnlyWantToFilterThis.properties</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>WeOnlyWantToFilterThis.properties</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
Resource filtering is nothing more than applying a parameter map to a
velocity template.
So if you want to prevent a specific value inside the resource from being
filtered, use velocity escaping..
Cheers
Jo
On 6/4/07, Kevin Stembridge <ke...@db.com> wrote:
>
> Hi all,
> Is there a way to specify that only some files within a given directory
> hierarchy get filtered when resources are copied?
> And what about specifically including or excluding certain properties
from
> being filtered?
>
> Cheers,
> Kevin
>
>
> ---
>
> This e-mail may contain confidential and/or privileged information. If
you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
---
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
Re: Specifying inclusions/exclusions from filtering resources
Posted by Jo Vandermeeren <jo...@gmail.com>.
Hi Kevin,
You can define separate sets for resources that need to be filtered.
More on includes/excludes here:
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html
Example..
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude> WeOnlyWantToFilterThis.properties</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>WeOnlyWantToFilterThis.properties</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
Resource filtering is nothing more than applying a parameter map to a
velocity template.
So if you want to prevent a specific value inside the resource from being
filtered, use velocity escaping..
Cheers
Jo
On 6/4/07, Kevin Stembridge <ke...@db.com> wrote:
>
> Hi all,
> Is there a way to specify that only some files within a given directory
> hierarchy get filtered when resources are copied?
> And what about specifically including or excluding certain properties from
> being filtered?
>
> Cheers,
> Kevin
>
>
> ---
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.