final List<String> commandLine =
FlexCommonUtils.getCommandLineForSdkTool(myProject, sdk, classpath.toString(), "com.intellij.flex.compiler.FlexCompiler");
commandLine.add(String.valueOf(port));
final ProcessBuilder processBuilder = new ProcessBuilder(commandLine);
processBuilder.redirectErrorStream(true);
<BUG>processBuilder.directory(new File(FlexCommonUtils.getFlexCompilerWorkDirPath(myProject)));
final String plainCommand = StringUtil.join(processBuilder.command(), new Function<String, String>() {
public String fun(final String s) {
return s.contains(" ") ? "\"" + s + "\"" : s;
}
}, " ");</BUG>
context.processMessage(new CompilerMessage(compilerName, BuildMessage.Kind.INFO, "Starting Flex compiler:\n" + plainCommand));

final List<String> commandLine =
FlexCommonUtils.getCommandLineForSdkTool(myProject, sdk, classpath.toString(), "com.intellij.flex.compiler.FlexCompiler");
commandLine.add(String.valueOf(port));
final ProcessBuilder processBuilder = new ProcessBuilder(commandLine);
processBuilder.redirectErrorStream(true);
processBuilder.directory(new File(FlexCommonUtils.getFlexCompilerWorkDirPath(myProject)));
final String plainCommand = StringUtil.join(processBuilder.command(), s -> s.contains(" ") ? "\"" + s + "\"" : s, " ");
context.processMessage(new CompilerMessage(compilerName, BuildMessage.Kind.INFO, "Starting Flex compiler:\n" + plainCommand));
