Example usage for org.apache.maven.plugin MojoExecution setForkedExecutions

List of usage examples for org.apache.maven.plugin MojoExecution setForkedExecutions

Introduction

In this page you can find the example usage for org.apache.maven.plugin MojoExecution setForkedExecutions.

Prototype

public void setForkedExecutions(String projectKey, List<MojoExecution> forkedExecutions) 

Source Link

Usage

From source file:net.oneandone.maven.plugins.prerelease.util.FilteringMojoExecutor.java

License:Apache License

private List<MojoExecution> filter(boolean nested, List<MojoExecution> orig) {
    List<MojoExecution> result;

    result = new ArrayList<>();
    for (MojoExecution execution : orig) {
        if (filter.include(nested, execution)) {
            result.add(execution);//from   w w w  .j a  v  a  2 s.  c  o m
            for (Map.Entry<String, List<MojoExecution>> entry : execution.getForkedExecutions().entrySet()) {
                execution.setForkedExecutions(entry.getKey(), filter(true, entry.getValue()));
            }
        }
    }
    return result;
}