* @throws IOException\r
*/\r
public static Process runModelica(SimulationLocation location, IModelicaMonitor monitor, HashMap<String, String> experimentParameters, HashMap<String, String> parameterChanges) throws IOException {\r
+ ArrayList<String> commands = new ArrayList<String>();\r
try {\r
- ArrayList<String> commands = new ArrayList<String>();\r
- commands.add(location.executableFile.getAbsolutePath());\r
-\r
if(experimentParameters.get(RESULT_FILE_NAME) != null) {\r
commands.add("-r="+experimentParameters.get(RESULT_FILE_NAME));\r
}\r
e.printStackTrace();\r
}\r
\r
- return runWithEnvironment(location.omHome, location.getModelDir(), location.executableFile);\r
+ // Commands to String[]\r
+ String[] commandString = new String[commands.size()];\r
+ for (int i = 0; i < commands.size(); ++i)\r
+ commandString[i] = commands.get(i);\r
+ \r
+ return runWithEnvironment(location.omHome, location.getModelDir(), location.executableFile, commandString);\r
}\r
\r
public static String getFlatModelText(SimulationLocation location, IModelicaMonitor monitor, List<String> additional) {\r