Skip to content
Snippets Groups Projects
Commit edd6d0a7 authored by Jonas's avatar Jonas
Browse files

Compiler autolaunch update

parent 8ec11808
No related merge requests found
File mode changed from 100644 to 100755
...@@ -36,9 +36,7 @@ public class Configurator { ...@@ -36,9 +36,7 @@ public class Configurator {
//path to the test manager //path to the test manager
private String m_sTestManagerPath = "../../../build/sim/testmanager.sh"; private String m_sTestManagerPath = "../../../build/sim/testmanager.sh";
//path to the testcase compliler //path to the testcase compliler
private String m_sTestCaseCompilerPath = "../../../build/test/compiler/compiler.dll"; private String m_sTestCaseCompilerPath = "../../../build/test/compiler/compile";
//arguments for the testcase compiler
private String[] m_aCompilerArgs = new String[] {"../../test/testfaelle", "../../../build/test/compiler/testfaelle"};
//document representation of the feature model //document representation of the feature model
private Document m_oFeatureModelDoc; private Document m_oFeatureModelDoc;
...@@ -127,7 +125,7 @@ public class Configurator { ...@@ -127,7 +125,7 @@ public class Configurator {
//TODO launch compiler //TODO launch compiler
try { try {
Process oTestCaseCompiler = oRuntime.exec("dotnet " + m_sTestManagerPath + " " + m_aCompilerArgs[0] + " " + m_aCompilerArgs[1]); Process oTestCaseCompiler = oRuntime.exec(m_sTestCaseCompilerPath);
BufferedReader oOutput = new BufferedReader(new InputStreamReader(oTestCaseCompiler.getInputStream())); BufferedReader oOutput = new BufferedReader(new InputStreamReader(oTestCaseCompiler.getInputStream()));
String sOutput = null; String sOutput = null;
while ((sOutput = oOutput.readLine()) != null) { while ((sOutput = oOutput.readLine()) != null) {
...@@ -139,7 +137,6 @@ public class Configurator { ...@@ -139,7 +137,6 @@ public class Configurator {
//TODO launch test manager //TODO launch test manager
try { try {
Process oChMod = oRuntime.exec("chmod u+x"+ m_sTestManagerPath);
Process oTestManager = oRuntime.exec(m_sTestManagerPath); Process oTestManager = oRuntime.exec(m_sTestManagerPath);
BufferedReader oOutput = new BufferedReader(new InputStreamReader(oTestManager.getInputStream())); BufferedReader oOutput = new BufferedReader(new InputStreamReader(oTestManager.getInputStream()));
String sOutput = null; String sOutput = null;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment