It is normal :) with the directory value you use that meen 
${basedir}/com/mtk/support/logging/**/*.xml are copy to 
/target/classes/**/*.xml
The dir structure of the file who are include is the same that the dir 
structure after the "directory" value.

      <build>
        <sourceDirectory>${basedir}</sourceDirectory>
        <resources>
          <resource>
            <directory>${basedir}</directory>
            <includes>
              <include>**/*.xml</include>
            </includes>
            <excludes>
              <exclude>**/*.java</exclude>
            </excludes>
          </resource>
        </resources>
      </build>


I think you should'nt use ${basedir} but place your xml file in a sub 
directory like ie src/main/resources

Nicolas
 
 
jeff mutnho




jeff mutonho <[EMAIL PROTECTED]>
08/09/2004 15:56
Veuillez r�pondre � "Maven Users List"

 
        Pour :  Maven Users List <[EMAIL PROTECTED]>
        cc : 
        Objet : Re: Copying some resources to the same directory of compiled classes


yes i defined the following 
<build>
             <sourceDirectory>${basedir}</sourceDirectory>
        <resources>
          <resource>
            <directory>${basedir}/com/mtk/support/logging</directory>
            <includes>
            <includes>
              <include>**/*.xml</include>
          </includes>
        </includes>
        <excludes>
           <exclude>**/*.java</exclude>
        </excludes>
      </resource>
    </resources>
    </build>
 
....but the're being copied to the /target/classes directory and not the 
 
/target/classes/com/mtk/support/logging  , where I want them to be.
 
 
jeff mutnho


[EMAIL PROTECTED] wrote:
Did you define in your build section something like :


src/main/resources/someresources

**/*.xml



and your xml are in 
src/main/resources/someresources/com/mtk/support/logging

Nicolas





jeff mutonho 
08/09/2004 15:19
Veuillez r�pondre � "Maven Users List"


Pour : Maven Users List 
cc : 
Objet : Copying some resources to the same directory of compiled classes


Hi

I've got some resources(xml files) that I wish to be copied to the 
destination directory where my compiled classes are placed eg if the 
classes are in 
/target/classes/com/mtk/support/logging , 
then the xml files must also be copied to the same directory(.ie logging ) 

and not 
/target/classes

I've tried specifying in the element , 
but that doesn't seem to work.


jeff mutonho


---------------------------------
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.



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


 
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!



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

Reply via email to