Commit 84e73ac
committed
Refactor
- Switch to `ProcessExecutor` instead of raw `ProcessBuilder`
- Add timeout support with configurable limit
- Add configurable I/O handling for inherited vs captured output
- Harden input validation for all setters and `execute()`
- Validate `jbang` executable exists and is executable before running
- Update `fromProject()` to preserve explicitly set values
- Improve error handling
- Add distinct failure on timeout
- Check `result.isSuccess()` before returning
- Honor `exitOnFailure` flag consistently
- Clarify `reset()` behavior to preserve `workDir`, `jBangHome`, and `timeout`JBangOperation to use ProcessExecutor, add timeout/IO controls, and harden validation1 parent f5e2864 commit 84e73ac
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments