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

nl.lexemmens.podman.executor.CommandExecutorDelegate Maven / Gradle / Ivy

package nl.lexemmens.podman.executor;

import org.apache.maven.plugin.MojoExecutionException;
import org.zeroturnaround.exec.ProcessExecutor;

import java.util.List;

/**
 * Interface that allows delegation of command execution to a specific implementation
 */
public interface CommandExecutorDelegate {

    /**
     * 

* Executes the command as configured in the provided ProcessExecutor. *

*

* Throws a MojoExecutionException in case command execution fails *

* * @param processExecutor The process executor carrying the command to execute * @return A {@link List} of {@link String}s representing the actual output of the command * @throws MojoExecutionException In case execution of the command fails */ List executeCommand(ProcessExecutor processExecutor) throws MojoExecutionException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy