ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: mappedresources question
Date Wed, 14 Jul 2010 13:23:38 GMT
Jon Stevens <latchkey@gmail.com> wrote on 07/14/2010 12:19:22 AM:

> say i have this:
> 
>         <war destfile="foo.war" webxml="WEB-INF/web.xml">
>             <mappedresources>
>                 <resources refid="all.classpath" />
>                 <chainedmapper>
>                     <flattenmapper/>
>                     <globmapper from="*" to="WEB-INF/lib/*"/>
>                 </chainedmapper>
>             </mappedresources>
>        </war>
> 
> but i want to exclude some files from the WEB-INF/lib that are
> included in the all.classpath... how would i do that?

Offhand I think if a resource has a null mapping it will be excluded.

By far though I think it would be easier to just make sure that the 
unwanted resources are excluded from all.classpath
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message