List<FileSet> fileSets = ignore.getFileSets();
this.ignorePattern = getPattern(fileSets);
}
private TemplateEngine createTemplateEngine(Hashtable<String, String> properties) {
TemplateEngine templateEngine = SystemInfoFactory.fetchTemplateEngine();
// add properties to Template Engine tokens
if (properties != null) {
for (Map.Entry<String, String> e : properties.entrySet()) {
templateEngine.getTokens().put(e.getKey(), e.getValue());
}
}
// Add the deployment props to the template engine's tokens.
Configuration config = getProject().getConfiguration();
for (PropertySimple prop : config.getSimpleProperties().values()) {
templateEngine.getTokens().put(prop.getName(), prop.getStringValue());
}
// And add the special rhq.deploy.dir prop.
templateEngine.getTokens().put(DeployPropertyNames.DEPLOY_DIR,
getProject().getProperty(DeployPropertyNames.DEPLOY_DIR));
return templateEngine;
}