services.VelocityService.runtime.log not relative
-------------------------------------------------
Key: TRB-88
URL: https://issues.apache.org/jira/browse/TRB-88
Project: Turbine
Issue Type: Improvement
Components: Core
Affects Versions: Core 2.3.3
Environment: Windows XP
Reporter: Georg Kallidis
Priority: Minor
The definition in TR.properties of the velocity log is
services.VelocityService.runtime.log=/log/velocity.log
If using the default class
org.apache.turbine.services.velocity.TurbineVelocityService as the
VelocityService the method
public ExtendedProperties createVelocityProperties(Configuration conf)
which is called when the service is initialized. It has at the beginning:
if (!key.endsWith(RESOURCE_LOADER_PATH) {... continue }
and only after this pathes are resolved relative to the web-app.
If you consider this, then e.g defining runtime.log as above you end up (in may
case) with a log in C:/log/velocity.log.
Either change the line to
if (!key.endsWith(RESOURCE_LOADER_PATH) && !key.endsWith("runtime.log"))
or apply a change to make the condition check configurable ...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira