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 <[EMAIL PROTECTED]> 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.

Reply via email to