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

io.github.mike10004.debianmaven.ProcessRunner Maven / Gradle / Ivy

Go to download

This plugin helps building DEB packages from Maven projects. The packages can be used in DEB-based operating systems such as Debian and Ubuntu. The plugin uses external Debian tools to do the actual packaging.

The newest version!
package io.github.mike10004.debianmaven;

import edu.emory.mathcs.backport.java.util.Collections;
import org.apache.maven.plugin.MojoExecutionException;

import java.io.IOException;
import java.util.Map;

public interface ProcessRunner {

    default void runProcess(String[] cmd, @SuppressWarnings("SameParameterValue") NonzeroProcessExitAction nonzeroExitAction) throws IOException, MojoExecutionException {
        runProcess(cmd, Collections.emptyMap(), nonzeroExitAction);
    }
    void runProcess(String[] cmd, Map env, @SuppressWarnings("SameParameterValue") NonzeroProcessExitAction nonzeroExitAction) throws IOException, MojoExecutionException;

    default byte[] runProcessWithOutput(String[] cmd, @SuppressWarnings("SameParameterValue") NonzeroProcessExitAction nonzeroExitAction) throws IOException, MojoExecutionException {
        return runProcessWithOutput(cmd, Collections.emptyMap(), nonzeroExitAction);
    }

    byte[] runProcessWithOutput(String[] cmd, Map env, @SuppressWarnings("SameParameterValue") NonzeroProcessExitAction nonzeroExitAction) throws IOException, MojoExecutionException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy