mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javafx: publish message from output when process fails
This commit is contained in:
+8
-1
@@ -251,7 +251,14 @@ public abstract class AbstractJavaFxPackager {
|
||||
if (!StringUtil.isEmptyOrSpaces(message)) {
|
||||
registerJavaFxPackagerError(message);
|
||||
}
|
||||
return process.waitFor();
|
||||
final int result = process.waitFor();
|
||||
if (result != 0) {
|
||||
final String explanationMessage = new String(FileUtil.loadBytes(process.getInputStream()));
|
||||
if (!StringUtil.isEmptyOrSpaces(explanationMessage)) {
|
||||
registerJavaFxPackagerError(explanationMessage);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
catch (Exception e) {
|
||||
registerJavaFxPackagerError(e);
|
||||
|
||||
Reference in New Issue
Block a user