{
command = command + OperatingSystemUtils.getLineSeparator();
}
command = command + "exit" + OperatingSystemUtils.getLineSeparator() + "\0";
Settings settings = new SettingsBuilder().inputStream(new ByteArrayInputStream(command.getBytes()))
.outputStream(System.out).outputStreamError(System.err).ansi(false).create();
this.shell = shellFactory.createShell(OperatingSystemUtils.getWorkingDir(), settings);
this.shell.getConsole().getExportManager().addVariable("export INTERACTIVE=false");
}
else if (Boolean.getBoolean("forge.standalone"))
{
Settings settings = new SettingsBuilder().create();
this.shell = shellFactory.createShell(OperatingSystemUtils.getWorkingDir(), settings);
}
}