you need an identifier to select on - and all you really have is
directory, though it doesn't need to be unique so its not really
possible to "select one".

You can add some conditionals into your loop to match the one you
want, but then you are really just duplicating a copy statement
anyway...

- Brett


On Thu, 16 Dec 2004 11:39:02 -0600, Gezerk <[EMAIL PROTECTED]> wrote:
> I am writing a plugin.  I have several "resource" elements in my project.xml.
> 
> I am currently copying all the project resources into a new directory,
> however I want to copy the start scripts to a bin dir, and the
> properties files to a conf dir.
> 
> I currently copy all resources using  maven:copy-resources, and
> ${pom.build.resources} (see below for example).  It seems like I
> should be able to copy a single 'resource'.
> 
> I looked in several Maven plugins to see if I could find an answer,
> and I see how to loop thru the resources, but no way to acces a
> specific one directly.  I also searched this list for
> pom.build.resources and did not find any help.
> 
> Thanks in advance for your assistance.
> 
> From my project.xml:
> 
>                  <resources>
>                         <resource>
>                                 <directory>${basedir}/src/conf</directory>
>                                 <includes>
>                                         <include>*.properties</include>
>                                         <include>*.xml</include>
>                                 </includes>
>                         </resource>
>                         <resource>
>                                 <directory>${basedir}/scripts</directory>
>                                 <includes>
>                                         <include>*.sh</include>
>                                 </includes>
>                         </resource>
>                         <resource>
>                                 <directory>${basedir}/test/conf</directory>
>                                 <includes>
>                                         <include>*.properties</include>
>                                         <include>*.xml</include>
>                                 </includes>
>                         </resource>
>                 </resources>
> 
> From my jelly script:
> 
>         <j:if test="${!pom.build.resources.isEmpty()}">
>             <maven:copy-resources
>                 resources="${pom.build.resources}"
>                 todir="${eqfo.dam.app.version.os.conf.dir}"/>
>         </j:if>
> 
> ---------------------------------------------------------------------
> 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