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 detlef.brendle@(protected)
Reply:     1     2     3     4     5  

As War is an extension of Jar and Zip I guess you could do something like:




<war webxml="${xml.dir}/web.xml" ...>


...


<zipfileset dir="${xml.dir}" prefix="WEB-INF" includes="jboss-web.xml" />


</war>




This generates a war file as before plus the jboss-web.xml within WEB-INF/
folder too.




regards,


detlef






Quoting Nicholas <nwhitehe@(protected)>:




> I am trying to use the War taks, but I have two,


> descriptors: web.xml and jboss-web.xml. I have tried a


> couple of things to get both in, to no avail:


>


> <war destfile="${out.dir}/ExWebApp.war"


> webxml="${xml.dir}/*.xml" >


>


> <war destfile="${out.dir}/ExWebApp.war"


> webxml="${xml.dir}/web.xml,${xml.dir}/jboss-web.xml" >


>


> Neither of these worked.


>


> Is there any way to do this ?


>


> Thanks.


>


> //Nicholas


>


>


> =====


> Nicholas Whitehead


> Home: (973) 377 9335


> Cell: (201) 615 2716


> nwhitehe@(protected)


> Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/


>


> ---------------------------------------------------------------------


> To unsubscribe, e-mail: user-unsubscribe@(protected)


> For additional commands, e-mail: user-help@(protected)


>




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