Ok,
I'm mucking with Runtime again cause I'm re-doing the way that Turbine
initializes Velocity because it is seriously broken right now. :-)
The main issue is that we need to do some double initialization. In other
words, first, I want to initialize Velocity with its defaults and then I
want to override some of those defaults with other values (such as the log
file path and templates path as well as whatever is in a user specified
velocity.properties file).
The problem is that there are several catch 22's and duplications of effort.
For instance, if I call Runtime.init(propertiesFile), then the log file will
get first created in the default location and then I will be replacing that
to be the location that Turbine wants. Not good because it creates all sorts
of potential synchronized issues as well as a duplication of executed code
(first the templates are initialized to the defaults and then replaced with
what Turbine specifies).
So, can you guys think of a better way to deal with this? Please don't touch
Runtime as I have something pretty much working now and I will commit it
soon and I don't want to deal with conflicts. But, I think this whole
problem needs to be dealt with better.
thanks,
-jon
--
Honk if you love peace and quiet.