From: Alistair Y. <ali...@sm...> - 2005-05-24 13:24:29
|
> having the ability to install Bod when running Tomcat with a JRE is > better ...than precompiling templates? Do you think we shouldn't precompile Mathew? > I think is probably the way to go as it is the "standard" Java way of > loading i18n properties files yes, agreed. See my next email about TMX! Alistair On 24 May 2005, at 14:04, Matthew Buckett wrote: > Alistair Young wrote: >> It seems that when you pre-compile the templates, it breaks i18n. >> This is due to the local build path being used to initialise the >> resource file paths: >> WEB-INF/template_classes/working/style_default_default/ >> template_useroptions.java: >> String resourceFile = >> "/Users/alistair/dev/sourceforge/Bodington/build/bodington/templates/ >> style_default/default/lang/null/useroptions.properties"; >> this is never going to work as resourceFile as defined above doesn't >> exist when you deploy. >> it works if you don't compile the templates and let bodington compile >> them itself as and when needed. > > This does cause another problem though, if someone is running tomcat > and bodington in the directory /usr/local/tomcat and decides to move > tomcat to /home/tomcat then all the templates stop working. > >> There are two ways round this: >> 1) Don't pre-compile templates - bod can do it anyway > > I'd say that if we are trying to make Bodington as easy as possible to > install having the ability to install Bod when running Tomcat with a > JRE is better. > >> 2) I change i18n to put resource files in the classpath so the full >> path isn't required. That means the resource files will be separate >> from the templates and we'll need a new WEB-INF/classes directory >> where one didn't exist before. > > I think is probably the way to go as it is the "standard" Java way of > loading i18n properties files. > We don't need to have the files expanded under WEB-INF/classes, it > just makes things easier for people who want to do translation. > >> anyone got any opinions? > > Silly question ;-) > > -- > +--Matthew Buckett-----------------------------------------+ > | VLE Developer, Learning Technologies Group | > | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | > +------------Computing Services, University of Oxford------+ > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers |