From 45c6627862679fc50812af65e8465d62bfe804be Mon Sep 17 00:00:00 2001 From: Marcel Kronfeld Date: Mon, 16 Aug 2010 10:15:16 +0000 Subject: [PATCH] Minor change (in sync with MK branch) --- .../server/go/problems/ExternalRuntimeProblem.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/eva2/server/go/problems/ExternalRuntimeProblem.java b/src/eva2/server/go/problems/ExternalRuntimeProblem.java index 6d6d985a..9a91b6f6 100644 --- a/src/eva2/server/go/problems/ExternalRuntimeProblem.java +++ b/src/eva2/server/go/problems/ExternalRuntimeProblem.java @@ -161,7 +161,15 @@ public class ExternalRuntimeProblem extends AbstractOptimizationProblem implemen System.arraycopy(((InterfaceDataTypeDouble) individual).getDoubleData(), 0, x, 0, x.length); return x; } - + + public static List runProcess(String[] parameters, String workingDir) { + List params = new ArrayList(parameters.length); + for (String str : parameters) { + params.add(str); + } + return runProcess(params, workingDir); + } + public static List runProcess(List parameters, String workingDir) { Process process; ProcessBuilder pb;