textArea.append("[MakeEnvironment] ");
textArea.repaint();
textArea.setCaretPosition(textArea.getText().length()-1);
duration = Calendar.getInstance().getTimeInMillis();
try {
MakeEnvironment makeEnvironment = new MakeEnvironment(temporaryDirectory, destinationFile.getName());
makeEnvironment.start();
while (makeEnvironment.isExecuting()) {
Thread.sleep(50);
}
if (makeEnvironment.getExitValue() != 0) {
error = true;
textArea.append("Error exit value = " + makeEnvironment.getExitValue());
textArea.append("\n");
}
if (makeEnvironment.getException() != null) {
error = true;
textArea.append(makeEnvironment.getException().getMessage());
textArea.append("\n");
}
} catch (ExecutableException e) {
error = true;
textArea.append(e.getMessage());