No, for some reason they chose to separate the source & test
directories.

File structure-

util
 |-test
 |  |-com
 |   ....
 |
 |-src
    |-com
     ...

So I have
<sourceDirectory>src/</sourceDirectory> 
& 
<unitTestDirectory>test/</unitTestDirectory>

in my project.xml file.

Thanks,
Luciano Moretti


-----Original Message-----
From: Jason van Zyl [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 11:43 PM
To: Maven Users List
Subject: RE: How does maven set the classpath?


On Tue, 2003-07-01 at 10:22, Moretti, Luciano (MED) wrote:
> Ok, if I'm understanding correctly the following will copy all files
> with the extension .properties from the <directory> to
> $(basedir)/target/test-classes/ 
> 
> 
> <!-- Unit test cases -->
>   <unitTest>
>     <includes>
>       <include>**/*Test.java</include>
>     </includes>
>     <excludes>
>     </excludes>
> 
>     <resources>
>       <resource>
>
<directory>$(basedir)/test/com/ge/medit/util/resources</directory>

Should that not be ${basedir}/src/test ...

>         <includes>
>           <include>**/*.properties</include>
>         </includes>
>       </resource>
> 
>       <resource>
>
<directory>$(basedir)/test/com/ge/medit/util/logging</directory>
>         <includes>
>           <include>**/*.properties</include>
>         </includes>
>       </resource>
>     </resources>
>   </unitTest>
> 
> If this is correct, it does not seem to be working, as the files are
not
> in my $(basedir)/target/test-classes directory after I run maven.

It works just fine you have a configuration problem.

> Thank you,
> Luciano
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


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

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

Reply via email to