Writer wr = new FileWriter(output);wr.write(someErlang);wr.close();
ErlangRunner.compileErl(output,null,false);
Process erlangProcess = Runtime.getRuntime().exec(new String[]{ErlangRunner.getErlangBin() + "erl","-run",ErlangRunner.getErlName(output.getName()),"testFun","arg","arg2",
"-noshell"}, null, testDir);
final StringBuffer err=new StringBuffer(),out=new StringBuffer();
ExperimentRunner.dumpStreams(erlangProcess, LTL_to_ba.timeBetweenHearbeats, new HandleProcessIO() {
@Override
public void OnHeartBeat() {// no prodding is done for a short-running converter.
}