From: Alexis O'C. <ale...@co...> - 2005-05-25 15:49:19
|
Alistair Young wrote: > cmon, give me some credit - I don't hard code! > > bodingtonProperties is set via > breq.getRealPath("/WEB-INF/bodington.properties") > > on windows it comes out with backslashes as it should, however, this is > no normal system, this is bodington and the result has to be written as > code into a java file: > > writer.println("bodingtonProperties = \"" + bodingtonProperties + "\";"); > > I could just do bodingtonProperties.replaceAll("\\", "\\\\"); > > the only reason I need bodingtonProperties is to get the language debug > level as BuildingContext is incapable of updating bodington.properties > - it reads it once then forgets it's there, so using > BuildingContext.getProperty() doesn't work in a dynamic environment - > unless I've missed something? > > the alternative is to store the debug level as a user setting but > that's overkill. A debug level was specifically requested and > bodington.properties was the cleanest way to do it. I think I understand better now. Don't worry, I think Windoze is a pile of w*nk too, but I believe they have quite a big share of the desktop market, so I think we're kinda obliged to support it ;-). > > I hope you meant the hardback edition of the beano annual? > Is there any other!? ;-). > Would you like to do the build file update for res.jar seeing you > designed the process and are more familiar with it? > No worries on this score. I was working on a fix as your reply popped into my inbox. Should be committed back very soon! Alexis |