ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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 <khatton@axiomsystems.com> 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>.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message