I did get something like this working, so it copies stuff into the
appropriate directory in the war
...........
<configuration>
<webResources>
<resource>
<directory>${basedir}\web</directory>
<includes>
<include>*.html</include>
<include>**/*.html</include>
<include>**/*.gif</include>
<include>**/*.js</include>
<include>**/*.css</include>
<include>**/*.jsp</include>
</includes>
<targetPath>some dir</targetPath>
</resource>
<resource>
..............
</resource>
</webResources>
</configuration>
Hope that helps
.........................
-----Original Message-----
From: Kram [mailto:[EMAIL PROTECTED]
Sent: 26 September 2007 07:39
To: [email protected]
Subject: Maven Resources Query
Hi guys, a simple on here. I do have another thread that was similar to
this,
but it was getting off topic and cluttered.
Does anyone know how to copy many similar resources using the war
plug-in,
like so:
if my dir structure is like this:
/webApp/admin/tiles/some JSP files
/webApp/other/tiles/some JSP files
/webApp/more/tiles/some JSP files
...
...
and so on for quite a lot of directories.
What I would like to do is to do something like this:
<resource>
<directory>webApp/*/tiles</directory>
<targetPath>*/tiles</targetPath>
</resource>
(i know that doesnt work)
but you get what im saying?? Im trying to put all the JSP's into the
root
deployment directory, but still under their respective parent folders
so I would end up with this:
/admin/tiles/some JSP files
/other/tiles/some JSP files
/more/tiles/some JSP files
in the target directory
Can it be done? Or do I have to specify each, one by one?
Thanks heaps!!
--
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]