You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ni...@arsoe-trelaze.com on 2004/09/08 15:24:18 UTC

Re: Copying some resources to the same directory of compiled classes

Did you define in your build section something like :
      <resources>
        <resource>
          <directory>src/main/resources/someresources</directory>
          <includes>
            <include>**/*.xml</include>
          </includes>
        </resource>
      </resources>
and your xml are in 
src/main/resources/someresources/com/mtk/support/logging

Nicolas





jeff mutonho <ej...@yahoo.com>
08/09/2004 15:19
Veuillez répondre à "Maven Users List"

 
        Pour :  Maven Users List <us...@maven.apache.org>
        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  <destinationDirectory> in the <resources> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Copying some resources to the same directory of compiled classes

Posted by Milos Kleint <Mi...@Sun.COM>.
what about:

          <resource>
            <directory>${basedir}</directory>
            
            <includes>
              <include>com/mtk/support/logging/**/*.xml</include>
          </includes>


Milos

jeff mutonho wrote:

>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
>
>
>Nicolas.CHALUMEAU@arsoe-trelaze.com 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: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>		
>---------------------------------
>Do you Yahoo!?
>New and Improved Yahoo! Mail - 100MB free storage!
>
>  
>


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


Re: Copying some resources to the same directory of compiled classes

Posted by jeff mutonho <ej...@yahoo.com>.
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


Nicolas.CHALUMEAU@arsoe-trelaze.com 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


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