This is to include ressource in the classpath when your generate archive.
If you want to include them to make unittest it is the same way :

<build>
    <unitTest>
      <!-- includes -->
      <!-- excludes -->
      <!-- Fichier de conf � placer dans le classpath pour les test 
unitaire -->
 
      <!-- Fichier pour OJB ODMG Repository -->
      <resources>
        <resource>
          <directory>${basedir}/src/conf/ojb</directory>
          <includes>
            <include>**/*.properties</include>
            <include>**/*.xml</include>
            <include>**/*.dtd</include>
          </includes>
        </resource>
        ...
      </resources>
    </unitTest>
</build>

*.properties, ... will be copy in target/test-classes when you do 
test:compile.

But you can do your own target in maven.xml to copy them after the 
java:compile :
<goal name="prepare-jdepend">
  <copy todir="target/classes">
      <fileset dir="src/conf"/>
  </copy>
</goal>






"Marc Gemis" <[EMAIL PROTECTED]>
02/07/2003 16:57
Veuillez r�pondre � "Maven Users List"

 
        Pour :  Maven Users List <[EMAIL PROTECTED]>
        cc : 
        Objet : Re: R�f. : jDepend properties


On 02-07-2003 16:36, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> Hi
> 
> In your project.xml define the ressource you want to include in your
> classpath :
> 
> <build>
>   <resources>
>     <resource>
>       <directory>${basedir}/src/conf</directory>
>       <includes>
>         <include>*.properties</include>
>          ...
>       </includes>
>     </resource>
>   </resources>
> <build>
> 
> And you just have to place your jdepend.properties in src/conf


This does not work for me. I checked the classpath by running
 maven -X

The classpath that is used to start jdepend only contains jars from the
$MAVEN_HOME/lib and the dependencies I've placed in the project.xml, but 
no
.properties files.

On the other hand a .DS_Store file (Mac OS X specific) in the lib dir gets
included in the classpath.

I'll take a look again at it tomorrow, maybe at the beginning of the day I
catch typos better.


thanks for your help.

m.


---------------------------------------------------------------------
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