Guest User

Untitled

a guest
Dec 11th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. this.velocity = new VelocityEngine();
  2. velocity.setProperty("runtime.log.logsystem.class", NullLogChute.class);
  3. velocity.setProperty("input.encoding", "UTF-8");
  4. velocity.setProperty("output.encoding", "UTF-8");
  5. velocity.setProperty("url.resource.loader.class", "org.apache.velocity.runtime.resource.loader.URLResourceLoader");
  6. velocity.setProperty("url.resource.loader.root", url);
  7. velocity.setProperty("url.resource.loader.cache", false);
  8. velocity.setProperty("url.resource.loader.modificationCheckInterval", "60");
  9. velocity.setProperty("resource.loader", "url, file");
  10. this.velocity.init();
  11. this.rt = new RenderTool();
  12. this.rt.setVelocityEngine(this.velocity);
Add Comment
Please, Sign In to add comment