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