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: [email protected] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
