Hi,
This patch passes the applicationRoot and webappRoot utility variables from Turbine to
all loaded subsystems.
This makes it possible to use relative paths again in database urls (Hypersonic
mostly) when using the
decoupled Torque with turbine-2.
I described the problem in my post to turbine-users titled "Using ${applicationRoot}
in Torque.properties
(Torque-3.0-dev)"
Age
Index: Turbine.java
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-2/src/java/org/apache/turbine/Turbine.java,v
retrieving revision 1.10
diff -u -r1.10 Turbine.java
--- Turbine.java 8 Feb 2002 21:36:29 -0000 1.10
+++ Turbine.java 12 Mar 2002 13:58:28 -0000
@@ -857,9 +857,13 @@
Object sys = Class.forName(sysClassName).newInstance();
+ Configuration conf = new PropertiesConfiguration(sysConfig);
+
+ conf.setProperty(sysName + "." + APPLICATION_ROOT, applicationRoot);
+ conf.setProperty(sysName + "." + WEBAPP_ROOT, webappRoot);
+
// configure subsystem using the defined config file
- ((Configurable) sys).configure( (Configuration)
- new PropertiesConfiguration(sysConfig));
+ ((Configurable) sys).configure(conf);
// initialize subsystem
((Initializable) sys).initialize();
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>