use of org.xwiki.velocity.tools.EscapeTool in project xwiki-platform by xwiki.
the class MacrosTest method setup.
@Before
public void setup() {
this.ve = new VelocityEngine();
Properties props = new Properties();
String path = String.format("%s/src/main/webapp/templates", BASEDIR);
props.setProperty("file.resource.loader.path", path);
props.setProperty("directive.set.null.allowed", "true");
props.setProperty("velocimacro.permissions.allow.inline.local.scope", "true");
props.setProperty("velocimacro.library", "macros.vm");
this.ve.init(props);
this.context = new VelocityContext();
this.context.put("escapetool", new EscapeTool());
}
Aggregations