-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Konstantin,
On 3/14/12 8:49 AM, Konstantin Kolinko wrote: > 2012/3/13 Nick Williams <nicholas.willi...@puresafety.com>: >> >> Our second challenge is the 11,500-line web.xml file that >> results from this process. I understand that Ant does a lot of >> the hard work for me, but a web.xml file this large bothers me, >> even if I don’t have to look at it during every day development. >> What’s more, we’re actually trying to *move away* from having a >> web.xml file (of any real substance) and using new Servlet 3.0 >> features. >> > > There was a discussion to pack precompiled JSPs as a web fragment, > https://issues.apache.org/bugzilla/show_bug.cgi?id=50234 but no > code has been proposed to implement that. I've been slowly hacking-away at an ant script that handles almost all of this. I still need to work with JspC to do things like confirm the spec-compliance-level when emitting a web fragment. > If you seriously consider this feature to be useful to be used in > a real application, you may be the one contributing the code. > > 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' :) > Though note that a web application that does not use fragments and > annotations (and has metadata-complete="true" in its web.xml) > starts up faster, because Tomcat does not need to spend time > scanning the classes and libraries for annotations and web > fragments. +1 - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9gzcUACgkQ9CaO5/Lv0PBFCwCgtvSMv0QqqGTUxGtVx1cqgp0F Y0kAn1TBvOrJo1A0WDbxZUAGxHc+TYvz =2iTK -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org