PropertyChain chain = chainBuilder.getPropertyChain();
Set<String> keys = chain.listKeys();
for (String key : keys) {
if (this.isIncluded(key, this.chain.filter, true)) {
PropertyInfo pi = chain.getInfo(key);
this.project.getProperties().put(key, pi.getValue());
boolean exportToSystemProperties = this.isIncluded(key, this.chain.exportToSystemProperty, false)
|| exportedProperty.contains(key);
if (exportToSystemProperties) {
System.setProperty(key, pi.getValue());
}
if (this.chain.logAddedKeys) {
String addedKeyLog = String.format("Added key: %s=%s", key, pi.getDisplayValue());
if (exportToSystemProperties) addedKeyLog += " (-> sys-export)";
this.getLog().info(addedKeyLog);
}
}
}