ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Using mapper to rename files included in WAR
Date Wed, 25 Jan 2006 04:48:22 GMT
On Tue, 24 Jan 2006, Keith Hatton <> wrote:

> I skimmed the section on mappers and hoped that the following (this
> is in a <macrodef>) would work:
> <war destfile="..." webxml="...">
>     ...
>     <webinf dir="${descriptors}/@{appserver}/web">
>         <mapper type="glob" from="console-*.xm*" to="*.xm*"/>
>         <include name="console-*.xm*"/>
>     </webinf>
> </war>

Neither <zip> (or its child <war>) nor <zipfileset> (of which <webinf>
is a variant) support mappers.  In order to achieve what you want to
do, you must create a temporary copy of your files using a mapper and
zip up that copy with <webinf>.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message