From: Alexis O'C. <ale...@co...> - 2005-05-24 14:30:02
|
Alistair Young wrote: > I know i18n is an unpopular subject and it's seen as superfluous by some > people, especially trying to retrofit it to an ancient system like this > - if it's too much for some to bear I can always just stop? Au contraire! I apologize for the somewhat sarcastic tone of some of my previous posts, but I'm actually entirely sympathetic to the notion of being i18n compatible. It's just that it strikes me you should be discovering some of these issues *before* committing rather than after. Just as a general point of illumination, the template-compiler ANT task (org.bodington.ant.TemplateBuilderTask) now supports the boolean 'failonerror' attribute (making it more consistent with complementary tasks such as Javac and JspC). By default this is true. Therefore, where a broken template is template no. 300 of 500, the following 199 are not even looked at. The whole build will fail as soon as a template contains 'unrecoverable errors'. Setting failonerror to 'false' means the build continues. If any templates contain unrecoverable errors then a warning message is written to the console saying how many fell into this category. Alexis P.S. Of course, the other alternative as the task is now an implicit FileSet is to do something like the following :-) <template-compiler ... > <include name="**/*.html" /> <exclude name="**/templateGivingYouAgro.html" /> </template-compiler> |