try {\r
\r
// Find OMC\r
- File openModelicaHome = getModelicaHome();\r
+ File openModelicaHome = simulationLocation.omcHome;\r
+ if (openModelicaHome == null)\r
+ openModelicaHome = getModelicaHome();\r
\r
// Create the build process\r
ProcessBuilder processBuilder = new ProcessBuilder(\r
\r
// Set environment variables for the process\r
Map<String, String> env = processBuilder.environment();\r
- File openModelicaHome = getModelicaHome();\r
+ File openModelicaHome = simulationLocation.omcHome;\r
+ if (openModelicaHome == null)\r
+ openModelicaHome = getModelicaHome();\r
env.put("OPENMODELICAHOME", openModelicaHome.getAbsolutePath());\r
env.put("OPENMODELICALIBRARY", openModelicaHome.getAbsolutePath() + "\\lib\\omlibrary");\r
env.put("OMPATH", openModelicaHome.getAbsolutePath() + "\\bin");\r
public File outputFile;\r
public File initFile;\r
public File simulatorFile;\r
+ public File omcHome;\r
\r
public SimulationLocation(File simulationDir, File inputFile,\r
File outputFile, File initFile, File exeFile) {\r
this.initFile = initFile;\r
this.simulatorFile = exeFile;\r
}\r
+ \r
+ public void setOMCHomeFolder(File omcHome) {\r
+ this.omcHome = omcHome;\r
+ }\r
}
\ No newline at end of file