Skip to content
Snippets Groups Projects
Commit 523a8032 authored by Georg Seibt's avatar Georg Seibt :nerd:
Browse files

move ExecRes to more generic class ProcessExecutor

parent 256a46e6
No related branches found
No related tags found
No related merge requests found
package de.uni_passau.fim.seibt.gitwrapper.process;
public class ProcessExecutor {
/**
* The result of a command line execution.
*/
public static class ExecRes {
public int code;
public String output;
}
}
......@@ -9,7 +9,7 @@ import java.util.function.Function;
import java.util.logging.Logger;
import java.util.stream.Collectors;
import de.uni_passau.fim.seibt.gitwrapper.repo.GitWrapper.ExecRes;
import de.uni_passau.fim.seibt.gitwrapper.process.ProcessExecutor.ExecRes;
/**
* A {@link Commit} made in a {@link Repository}.
......
......@@ -10,6 +10,7 @@ import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import de.uni_passau.fim.seibt.gitwrapper.process.ProcessExecutor.ExecRes;
import org.apache.commons.io.IOUtils;
/**
......@@ -25,14 +26,6 @@ public class GitWrapper {
private static final Pattern CLONING_INTO = Pattern.compile("Cloning into '(.*)'\\.\\.\\.");
private static final Pattern ALREADY_EXISTS = Pattern.compile("fatal: destination path '(.*)' already exists and is not an empty directory\\.");
/**
* The result of a command line execution.
*/
static class ExecRes {
int code;
String output;
}
private String git;
/**
......
......@@ -14,7 +14,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.stream.Collectors;
import de.uni_passau.fim.seibt.gitwrapper.repo.GitWrapper.ExecRes;
import de.uni_passau.fim.seibt.gitwrapper.process.ProcessExecutor.ExecRes;
/**
* A git {@link Repository}.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment