RE: configuring separate filter for testResources

2007-07-20 Thread Lalor, Brian
> -Original Message-
> From: Michael Meyer [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 20, 2007 10:43 AM
> To: Maven Users List
> Subject: Re: configuring separate filter for testResources
> 
> Hi Brian,
> Do I understand you right that you want to define two property files. 
> One for src/test/resources and one for src/main/resources? If 
> so I would 
> try using the maven-antrun-plugin and the ant replace task.

That's correct, Michael.  The antrun plugin would work, but it seems to me that 
since src/test/resources and src/test/filters are part of the standard Maven 
project directory structure, and since the testResources goal has a separate 
filters list, I should be able to do this in Maven without having to drop out 
to Ant.  

I think a  element at the same level as  in pom.xml 
would be appropriate here, but that doesn't currently exist.  Plan B is to 
specifically configure the testResources goal, but I can't figure out how to do 
that, either.

Thanks for the fall-back solution, however. :-)




Re: configuring separate filter for testResources

2007-07-20 Thread Michael Meyer

Hi Brian,
Do I understand you right that you want to define two property files. 
One for src/test/resources and one for src/main/resources? If so I would 
try using the maven-antrun-plugin and the ant replace task.


Cheers, michael

Lalor, Brian wrote:

Good morning, all.  I've been Googling for a while this morning and I'm not 
having any luck finding a solution to this problem...

I'm trying to set up property filtering for resources under src/test/resources.  I want the 
properties defined in src/test/filters/whatever.properties to only be applied to my test 
resources.  Unfortunately, the pom.xml only allows a single  element which 
applies to all filtered resources, whether or not they're specified in  or 
.  Looking at the plugin.xml for the maven-resources-plugin, it would 
appear that I can get around the pom limitation by defining a List of filters specifically for 
the testResources goal.  Unfortunately, I don't know how to go about doing that.  After some 
discussion on the list yesterday, I'm afraid this may be broken, but I'm hoping that's not the 
case. :-)

Can someone shed some light?

Thanks,
Brian

--
Brian Lalor
Fidelity Life Insurance Company (FILI) - Systems & Technology
Merrimack, NH
603-791-8612
[EMAIL PROTECTED]



--
Michael Meyer | [EMAIL PROTECTED]
phone +41-44-247 79 12 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch


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



configuring separate filter for testResources

2007-07-20 Thread Lalor, Brian
Good morning, all.  I've been Googling for a while this morning and I'm not 
having any luck finding a solution to this problem...

I'm trying to set up property filtering for resources under src/test/resources. 
 I want the properties defined in src/test/filters/whatever.properties to only 
be applied to my test resources.  Unfortunately, the pom.xml only allows a 
single  element which applies to all filtered resources, whether or 
not they're specified in  or .  Looking at the 
plugin.xml for the maven-resources-plugin, it would appear that I can get 
around the pom limitation by defining a List of filters specifically for the 
testResources goal.  Unfortunately, I don't know how to go about doing that.  
After some discussion on the list yesterday, I'm afraid this may be broken, but 
I'm hoping that's not the case. :-)

Can someone shed some light?

Thanks,
Brian

--
Brian Lalor
Fidelity Life Insurance Company (FILI) - Systems & Technology
Merrimack, NH
603-791-8612
[EMAIL PROTECTED]