com.nlocketz.plugins.RepetitionExecution Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-repeater-maven-plugin Show documentation
Show all versions of plugin-repeater-maven-plugin Show documentation
A Maven plugin that repeats a plugin while replacing placeholder variables. Used to reduce duplication within the POM.
package com.nlocketz.plugins;
import org.codehaus.plexus.configuration.PlexusConfiguration;
import java.util.Map;
import static com.nlocketz.plugins.Util.filter;
public class RepetitionExecution {
private String id;
private PlexusConfiguration configuration;
public String getId() {
return id;
}
PlexusConfiguration getConfiguration() {
return configuration;
}
RepetitionExecution sub(Map vars) {
RepetitionExecution execution = new RepetitionExecution();
execution.id = filter(vars, id);
execution.configuration = filter(vars, configuration);
return execution;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy