On Sat, 2005-06-25 at 19:23 -0500, Mike Perham wrote:
> Allan, <resources> works fine for the main source.  <testResources> does
> not work for resources within the test source.  
> 
> I'm not positive but some browsing of the Maven 2 source led me to
> believe support for <testResources> is not in MavenXpp3Parser.java and
> so any POM with that element does not work even though it is listed as
> supported in the POM element documentation.

Support for it is there:

http://codehaus.org/~jvanzyl/MavenXpp3Reader.java

Just search for testResources.

<build>
  <testResources>
    <testResource/>
  </testResources>
</build>

You can also see an example in the super pom:

http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-
project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml?
rev=193085&view=markup


> mike
> 
> -----Original Message-----
> From: Allan Ramirez [mailto:[EMAIL PROTECTED] 
> Sent: Friday, June 24, 2005 7:56 PM
> To: Maven Users List
> Subject: Re: [M2] plugin configuration
> 
> Mike Perham wrote:
> 
> >
> >2) We put all our necessary resources right along with the code.  How 
> >do I tell the two resource copy goals to copy anything non-java from 
> >the source directory instead of using a separate resource directory?
> >
> >
> Hi Mike,
> 
>     for your no. 2 problem, I am not sure but have you tried to
> configure your <resource> element?
>    
> 
>   <resource>
>     <directory>src/java</directory>
>     <includes>
>       <include>**/*.properties</include>
>     </includes>
>     <excludes>
>       <exclude>*.java</exclude>
>     </excludes>
>   </resource>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org



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

Reply via email to