Skip to content

Commit 84e73ac

Browse files
committed
Refactor JBangOperation to use ProcessExecutor, add timeout/IO controls, and harden validation
- 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`
1 parent f5e2864 commit 84e73ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

example/src/bld/java/com/example/ExampleBuild.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public ExampleBuild() {
1919

2020
downloadSources = true;
2121

22-
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES, RIFE2_SNAPSHOTS);
22+
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
2323

2424
var junit = version(6, 0, 3);
2525
scope(test)

0 commit comments

Comments
 (0)