All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nlocketz.plugins.RepetitionExecution Maven / Gradle / Ivy

Go to download

A Maven plugin that repeats a plugin while replacing placeholder variables. Used to reduce duplication within the POM.

There is a newer version: 0.0.13
Show newest version
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