GeneralCommandLine commandLine = getErlcCommandLine(target, context, compilerOptions, outputDirectory);
Process process;
try {
process = commandLine.createProcess();
} catch (ExecutionException e) {
throw new ProjectBuildException("Failed to launch erlang compiler", e);
}
BaseOSProcessHandler handler = new BaseOSProcessHandler(process, commandLine.getCommandLineString(), Charset.defaultCharset());
ProcessAdapter adapter = new ErlangCompilerProcessAdapter(context, NAME, "");
handler.addProcessListener(adapter);
handler.startNotify();