maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <brett.por...@gmail.com>
Subject Re: "maven test" copying lots of files
Date Mon, 03 Jan 2005 23:45:25 GMT
Maven 1.1 (in development) would complain very loudly at this.

- Brett


On Mon, 03 Jan 2005 12:28:18 -0500, Marcus A Christie
<machrist@cs.indiana.edu> wrote:
> Marcus A Christie wrote:
> ...snip...
> > Shouldn't "maven test:test-resources" exclude the target/ directory when
> > making a copy?  Am I doing something wrong?  I suspect that there might
> > be a problem here:
> >
> >     <build>
> >         <sourceDirectory>${basedir}/src/java</sourceDirectory>
> >
> > <unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory>
> >         <unitTest>
> >             <includes>
> >                 <include>**/*Test.java</include>
> >             </includes>
> >             <resources>
> >                 <resource>
> >                     <directory>${basedir}</directory>
> >                     <include>test.properties</include>
> >                 </resource>
> >             </resources>
> >         </unitTest>
> >     </build>
> >
> > If I comment out the <resources/> block, I don't get the copying taking
> > place.  How do I specify that I only want the test.properties file to be
> > included?
> >
> > Thanks,
> >
> > Marc
> 
> Okay, sorry folks, I got it.  Inside the <resource/> block I need to have:
> 
>    <includes>
>      <include>test.properties</include>
>    </includes>
> 
> I forgot the surrounding <includes/>.  Is there anyway to get Maven to
> complain if the project.xml isn't valid?
> 
> Thanks,
> 
> Marc
> 
> --
> Marcus Christie
> machrist@indiana.edu | 812-855-4081
> http://www.cs.indiana.edu/~machrist
> Yahoo IM: m_christie | AOL: marcuschristie
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message