From: Matthew B. <mat...@co...> - 2005-05-31 11:14:59
|
Peter Crowther wrote: > This must be the original dumb question, but... I'm deep in code called > from BuildingSessionImpl, and I want to get hold of a file in a known > location within the servlet. Is there a known sensible way of doing > this? Or is it a case of using the good ol' bodington.home property and > changing the code when that goes away? In the WebLearn HEAD I have removed the system property "bodington.home" and was going to email the list about pushing those changes over the Bodington HEAD. I do have a replacement Bodington property ("buildingservlet.context.root") that is set at servlet startup time and is local to the context, but this is a bodington property rather than a System one. The advantage of not using the system property is that you can have two Bodingtons running in the same container without them treading on each others toes. I also use this change for the quickstart WAR so that you can install Bodington without having to run SetupServlet. Can I ask why you are wanting to get hold of a file in BuildingSessionImpl? Is this a file you could load out of the classpath? or do you need to write values back to it? -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |