You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by robert burrell donkin <ro...@blueyonder.co.uk> on 2002/11/28 23:43:27 UTC

could maven copy over non-java files from src?

at the moment, maven compiles .class files into the test-classes but doesn'
t copy any other files over. this is a bit of a problem since i need to 
copy *.betwixt files over so that the betwixt unit tests will run.

would it be possible for maven to copy over any non-.java files over from 
src?

- robert


Re: could maven copy over non-java files from src?

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
that seems to work :)

thanks.

- robert

On Thursday, November 28, 2002, at 10:52 PM, Age Mooy wrote:

> <build>
>     ...
>
>     <!-- T E S T  R E S O U R C E S -->
>     <!-- Resources that are copied into the test-classes directory -->
>     <testResources>
>       <testResource>
>         <directory>${pom.build.unitTestSourceDirectory}</directory>
>         <includes>
>           <include>**/*.betwixt</include>
>         </includes>
>       </testResource>
>     </testResources>
>
>     ...
> </build>


RE: could maven copy over non-java files from src?

Posted by Age Mooy <am...@home.nl>.
Put something like the following your project.xml:

<build>
    ...
    
    <!-- T E S T  R E S O U R C E S -->
    <!-- Resources that are copied into the test-classes directory -->
    <testResources>
      <testResource>
        <directory>${pom.build.unitTestSourceDirectory}</directory>
        <includes>
          <include>**/*.betwixt</include>
        </includes>
      </testResource>
    </testResources>

    ...
</build>

Age


> -----Original Message-----
> From: robert burrell donkin 
> [mailto:robertburrelldonkin@blueyonder.co.uk] 
> Sent: Thursday, November 28, 2002 23:43
> To: Turbine Maven Developers List
> Subject: could maven copy over non-java files from src?
> 
> 
> at the moment, maven compiles .class files into the 
> test-classes but doesn' t copy any other files over. this is 
> a bit of a problem since i need to 
> copy *.betwixt files over so that the betwixt unit tests will run.
> 
> would it be possible for maven to copy over any non-.java 
> files over from 
> src?
> 
> - robert
> 
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For 
> additional commands, e-mail: 
> <ma...@jakarta.apache.org>
>