diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-08-06 16:57:32 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-08-06 16:57:32 +0100 |
| commit | 54cd15fbeb33ddcbed0b6635d2069a0380156e16 (patch) | |
| tree | 60c0674e5e7459e644136349c195ea5bb03335b4 /src/test/java/org/zwobble/couscous/tests/backends/Processes.java | |
| parent | ccd9a4e8888c4006a32b0cdcb983777a5064ed98 (diff) | |
Cache C# compiled output
Diffstat (limited to 'src/test/java/org/zwobble/couscous/tests/backends/Processes.java')
| -rw-r--r-- | src/test/java/org/zwobble/couscous/tests/backends/Processes.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/java/org/zwobble/couscous/tests/backends/Processes.java b/src/test/java/org/zwobble/couscous/tests/backends/Processes.java index 63e9b35..7b139df 100644 --- a/src/test/java/org/zwobble/couscous/tests/backends/Processes.java +++ b/src/test/java/org/zwobble/couscous/tests/backends/Processes.java @@ -10,9 +10,13 @@ import java.nio.file.Path; import java.util.List; public class Processes { + public static String run(List<String> arguments) throws IOException, InterruptedException { + return run(arguments, null); + } + public static String run(List<String> arguments, Path directoryPath) throws IOException, InterruptedException { Process process = new ProcessBuilder(arguments.toArray(new String[arguments.size()])) - .directory(directoryPath.toFile()) + .directory(directoryPath == null ? null : directoryPath.toFile()) .start(); int exitCode = process.waitFor(); |
