copyFileTo(confDir, "tomcat-users.xml");
copyFileTo(confDir, "web.xml");
}
private void copyTemplateTo(File targetDir, String filename) throws Exception {
Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM, new Log4JLogChute());
Velocity.setProperty(Velocity.RESOURCE_LOADER, "class");
Velocity.setProperty("class.resource.loader.description", "Velocity Classpath Resource Loader");
Velocity.setProperty("class.resource.loader.class", ClasspathResourceLoader.class.getName());
Velocity.init();
Template template = Velocity.getTemplate("/org/apache/openejb/tomee/configs/" + filename);