That works great. But I have an added question now:

I have evasive and non-evasive tests I want to run depending upon the
Profile used.
How can I exclude a directory under webapp-filtered to accomplish this...???


               <configuration>
                   <webResources>
                       <webResource>

<directory>${basedir}/src/main/webapp-filtered</directory>
                           <filtering>true</filtering>
                           <excludes>
                               <exclude>**/evasive-tests/*.*</exclude>
                           </excludes>
                           <includes>
                               <include>**/*.*</include>
                           </includes>
                       </webResource>
                   </webResources>
               </configuration>






On 11/8/06, Arnaud Bailly <[EMAIL PROTECTED]> wrote:

"Mick Knutson" <[EMAIL PROTECTED]> writes:

>        <resources>
>            <resource>
>                <directory>${basedir}/src/main/resources</directory>
>                <filtering>false</filtering>
>            </resource>
>            <resource>
>                <directory>${basedir}/src/main/webapp/npi</directory>
>                <filtering>true</filtering>
>            </resource>
>        </resources>
>
>

If your module has type war, then I think you need to move the
filtered elements out of webapp/ dir. Here is what I did for filtering
web.xml:

<build>
  <plugins>
   <!-- for configuring nanocontainer descriptor -->
   <plugin>
    <artifactId>maven-war-plugin</artifactId>
    <configuration>
           <webResources>
      <webResource>
       <directory>${basedir}/src/main/webapp-filtered</directory>
       <filtering>true</filtering>
       <includes>
        <include>**/*.xml</include>
       </includes>
      </webResource>
     </webResources>
    </configuration>
   </plugin>
  </plugins>
</build>

HTH
--
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson

Reply via email to