Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
War Task With Multiple XML Descriptors

War Task With Multiple XML Descriptors

2003-03-13       - By Stefan Bodewig
Reply:     1     2     3     4     5  

On Thu, 13 Mar 2003, Nicholas <nwhitehe@(protected)> wrote:

> I am trying to use the War taks, but I have two,
> descriptors: web.xml and jboss-web.xml.

And jboss-web.xml is in no way special to <war>.

> I have tried a couple of things to get both in, to no avail:
>
> <war destfile="${out.dir}/ExWebApp.war"
> webxml="${xml.dir}/*.xml" >

The webxml attribute is for web.xml, nothing else.

You want

<war destfile="${out.dir}/ExWebApp.war" webxml="${xml.dir}/web.xml">
 <webinf dir="${xml.dir}">
   <include name="jboss-web.xml"/>
 </webinf>
</war>

Stefan


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.