Thanks for the reply- but I have a few questions-

1) $(basedir) is the variable name for the directory from which maven
was invoked right?
2) can I point to the originals, or should I still copy them over into
the target/classes hierarchy.

3) I still don't know how to get the classpath that Maven is using.  I'm
going to need to get at that in order to prove one way or another that
these files are on the classpath.  The module I'm working with isn't my
own code, so if I found a bug by this shift in classpath, they are going
to be skeptical and blame it on the tool until I can prove otherwise by
producing the classpath.

Thanks,

Luciano

-----Original Message-----
From: Jason van Zyl [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 5:12 PM
To: Maven Users List
Subject: RE: How does maven set the class path?


On Mon, 2003-06-30 at 17:59, Moretti, Luciano (MED) wrote:
> I copied them manually before I ran maven.

Use the <unitTest/> element like the following:

<unitTest>
  <!-- includes -->
  <!-- excludes -->
  <resources>
    <resource>
      <directory>${basedir}/path/to/test/resources</directory>
      <includes>
        <include>**/*.properties</include>
        <include>**/*.xml</include>
      </includes>
    </resource>
  </resources>

</unitTest>


> Luciano
> 
> -----Original Message-----
> From: Paul Libbrecht [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 30, 2003 4:55 PM
> To: Maven Users List
> Subject: Re: How does maven set the class path?
> 
> 
> Moretti, Luciano (MED) wrote:
> > Hello Again....
> > 
> > I've got a junit test that requires access to a resource file on the
> > class path.
> > 
> > The files are normally copied to the classes/com/ge/gemsit/test
> > directory when built directly with Ant, but this does not see to
work
> > with maven.
> > 
> > What does maven set the class path to by default?  How does one add
> > areas to the class path?
> 
> Luciano,
> 
> Can it be your resources are not copied ?
> 
> Paul
> 
> 
> ---------------------------------------------------------------------
> 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]
-- 
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