|
55 | 55 | import java.util.concurrent.ExecutionException; |
56 | 56 | import java.util.concurrent.Future; |
57 | 57 | import java.util.logging.Logger; |
| 58 | +import static java.util.logging.Level.WARNING; |
58 | 59 | import org.netbeans.api.extexecution.ExecutionDescriptor; |
59 | 60 | import org.netbeans.api.extexecution.base.input.InputProcessor; |
60 | 61 | import org.netbeans.api.extexecution.base.input.InputProcessors; |
@@ -229,7 +230,7 @@ public String getVersion() { |
229 | 230 | } catch (InterruptedException ex) { |
230 | 231 | Thread.currentThread().interrupt(); |
231 | 232 | } catch (ExecutionException ex) { |
232 | | - Exceptions.printStackTrace(ex); |
| 233 | + LOGGER.log(WARNING, null, ex); |
233 | 234 | } |
234 | 235 | return helpLineProcessor.getHelp(); |
235 | 236 | } |
@@ -389,9 +390,9 @@ private void getCommands(List<String> subcommands, List<FrameworkCommand> comman |
389 | 390 | result.get(); |
390 | 391 | } |
391 | 392 | } catch (InterruptedException ex) { |
392 | | - Exceptions.printStackTrace(ex); |
| 393 | + Thread.currentThread().interrupt(); |
393 | 394 | } catch (ExecutionException ex) { |
394 | | - Exceptions.printStackTrace(ex); |
| 395 | + LOGGER.log(WARNING, null, ex); |
395 | 396 | } |
396 | 397 | List<String> lines = helpLineProcessor.asLines(); |
397 | 398 |
|
|
0 commit comments