>> If you pass an empty web.xml to be updated by precompile tasks, it >> should not be hard to convert it into web-fragment.xml, using an >> XSLT transform or just regexp replacements. > > I had considered using 'cat' :)
You could also use XML entities and/or XInclude (don't know if you would need to set a system property to use XInclude or if the default has it enabled): <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE letter [ <!ENTITY component1 SYSTEM "./component1.xml"> <!ENTITY component2 SYSTEM "./component2.xml"> ]> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0" xmlns:xi="http://www.w3.org/2001/XInclude" > &component1; &component2; <xi:include href="component3.xml"/> </web-app> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org