You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kram <ma...@gmail.com> on 2007/09/26 08:39:19 UTC
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!!
--
View this message in context: http://www.nabble.com/Maven-Resources-Query-tf4520344s177.html#a12894891
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Resources Query
Posted by Syed Shabir <sy...@designuk.com>.
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:mark.macumber@gmail.com]
Sent: 26 September 2007 07:39
To: users@maven.apache.org
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Resources Query
Posted by Tim Kettler <ti...@udo.edu>.
Hi,
the syntax for include/exclude patterns is inherited from
ant and is explained here [1].
-Tim
[1] http://ant.apache.org/manual/dirtasks.html#patterns
Kram schrieb:
> Hi Tim,
>
> Thanks for the help, I will try that and let you know, I thought i might
> just ask though, what is the difference between the single * and the double
> **.
>
> Thanks
>
>
> Tim Kettler wrote:
>> This should work:
>>
>> <resource>
>> <directory>webapp</directory>
>> <excludes>
>> <exclude>*</exclude>
>> </excludes>
>> <includes>
>> <include>*/tiles/**</include>
>> </includes>
>> </resource>
>>
>> -Tim
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Resources Query
Posted by Kram <ma...@gmail.com>.
Hi Tim,
Thanks for the help, I will try that and let you know, I thought i might
just ask though, what is the difference between the single * and the double
**.
Thanks
Tim Kettler wrote:
>
> This should work:
>
> <resource>
> <directory>webapp</directory>
> <excludes>
> <exclude>*</exclude>
> </excludes>
> <includes>
> <include>*/tiles/**</include>
> </includes>
> </resource>
>
> -Tim
>
--
View this message in context: http://www.nabble.com/Maven-Resources-Query-tf4520344s177.html#a12899202
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Resources Query
Posted by Tim Kettler <ti...@udo.edu>.
This should work:
<resource>
<directory>webapp</directory>
<excludes>
<exclude>*</exclude>
</excludes>
<includes>
<include>*/tiles/**</include>
</includes>
</resource>
-Tim
Kram schrieb:
> 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!!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org