package de.unistuttgart.iste.rss.bugminer.utils;

/**
 * The result of a command execution
 */
public class ExecutionResult {
	private final int exitCode;
	private final String stdout;
	private final String stderr;

	/**
	 * Creates a new {@code ExecutionResult}
	 * 
	 * @param exitCode the exit code of the command, 0 to denote success
	 * @param stdout the output of the command
	 * @param stderr the error output of the command
	 */
	public ExecutionResult(int exitCode, String stdout, String stderr) {
		super();
		this.exitCode = exitCode;
		this.stdout = stdout;
		this.stderr = stderr;
	}

	/**
	 * Gets the exit code of the command
	 * 
	 * @return 0 on success, other return values to indicate failure
	 */
	public int getExitCode() {
		return exitCode;
	}

	/**
	 * Gets the command's output
	 * 
	 * @return the output
	 */
	public String getOutput() {
		return stdout;
	}

	/**
	 * Gets the command's error output
	 * 
	 * @return the error output
	 */
	public String getErrorOutput() {
		return stderr;
	}
}

@@ -43,16 +43,46 @@
 utils;%0A%0A
+import java.io.Serializable;%0A%0A
 /**%0A * T
@@ -147,17 +147,110 @@
 nResult 
-%7B
+implements Serializable %7B%0A%09private static final long serialVersionUID = 6561911779091708307L;%0A
 %0A%09privat
@@ -378,25 +378,24 @@
 nResult%7D%0A%09 *
- 
 %0A%09 * @param 
@@ -755,25 +755,24 @@
  command%0A%09 *
- 
 %0A%09 * @return
@@ -912,33 +912,32 @@
 and's output%0A%09 *
- 
 %0A%09 * @return the
@@ -1040,20 +1040,19 @@
  output%0A
+
 %09 *
- 
 %0A%09 * @re

Make ExecutionResult serializable because it is stored in exceptions