You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2005/06/27 15:33:15 UTC
DO NOT REPLY [Bug 35512] New: -
path setting Error
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35512>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35512
Summary: path setting Error
Product: Velocity
Version: 1.4
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Source
AssignedTo: velocity-dev@jakarta.apache.org
ReportedBy: liviu_baloiu@hotmail.com
When I try to set a new path for the ResourrceManager, it does not get set.
Example:
//working directory is "/home/ntb/serverPath"
velocityEngine = new VelocityEngine();
velocityEngine.addProperty("path","/home/ntb/VelocityTest/");
velocityEngine.init();
Template template= velocityEngine.getTemplate("wwwroot/WEB-INF/Velocity/x.vm");
Even if the file "/home/ntb/VelocityTest/wwwroot/WEB-INF/Velocity/x.vm" does
exist,An exception is returned.
After looking into your code, I can see that the ResourceManager is looking for
".wwwroot/WEB-INF/Velocity/x.vm", which is incorect. I think the bug is in
ResourceManagerImpl.initialize (The configuration is well set, it has a path
property pointing to my required directory, but the resulting recourceLoader
still has the path set to ".".
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org