From: Alexis O'C. <ale...@co...> - 2005-07-15 10:01:04
|
Alistair Young wrote: > > "en" is a hard code though. Alexis, what's your opinion on adding a > language option to build.properties and setting it to "en" by default. > If you want to compile bod in another language you change the language > setting in build.properties? > > XmlTemplate doesn't need patched, just > TemplateBuilderTask.iterateTemplates() > > Alistair > OK, this is now in CVS. What I did: TemplateBuilderTask.java: added 'language' property. This calls XmlTemplate.setLanguage(String). build.xml: set the language attribute of the template-compiler task via the property 'build.templates.language'. sample.build.properties: added a placeholder for the property 'build.templates.language'. The defaults in the files above for 'language' are 'en'. Alexis P.S. Prehaps we could make template compilation language-agnostic for v2.8+ ;-). |