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]