shiver.me.timbers.plugins.invoker.multi.DefaultPropertiesAppender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multi-invoker-maven-plugin Show documentation
Show all versions of multi-invoker-maven-plugin Show documentation
This plugin can be used to invoke the current maven project multiple times with different profiles or
properties.
The newest version!
package shiver.me.timbers.plugins.invoker.multi;
import org.codehaus.plexus.component.annotations.Component;
import java.util.Map;
import java.util.Properties;
/**
* @author Karl Bennett
*/
@Component(role = PropertiesAppender.class, hint = "default")
class DefaultPropertiesAppender implements PropertiesAppender {
@Override
public Properties append(Properties... properties) {
final Properties appendedProperties = new Properties();
for (Properties props : properties) {
addProperties(appendedProperties, props);
}
return appendedProperties;
}
private static void addProperties(Properties origin, Properties properties) {
for (Map.Entry
© 2015 - 2025 Weber Informatics LLC | Privacy Policy