process-api: ProcessBuilder and Process API module (pipe-buffer deadlock and its fixes, timeouts and process-tree kill, grandchild holding the pipe, environment/redirect/stdin, ProcessHandle, startPipeline, shell and option injection), ProcessRunner, 14 contract tests
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b3W3uHbHAmM3orhn7b
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
47e4ccbefa
commit
a714780bca
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# Regenerates every file in ../output/. Requires JDK25_HOME. Linux/macOS only (uses sh, sleep, head, tr, cat).
|
||||
set -euo pipefail
|
||||
[[ -z "${JDK25_HOME:-}" ]] && { echo "JDK25_HOME must be set" >&2; exit 1; }
|
||||
cd "$(dirname "$0")/.."
|
||||
OUT=output; mkdir -p "$OUT"
|
||||
export JAVA_HOME="$JDK25_HOME"
|
||||
mvn -q -f ../pom.xml -pl process-api -am package
|
||||
J="$JDK25_HOME/bin/java"
|
||||
run() { echo "==> $1"; "$J" -cp target/classes "com.ankurm.process.$1" 2>&1 | grep -v "Picked up" > "$OUT/$2"; }
|
||||
run BasicsDemo 01-basics.txt
|
||||
run DeadlockDemo 02-deadlock.txt
|
||||
run TimeoutDemo 03-timeouts.txt
|
||||
run EnvironmentDemo 04-environment.txt
|
||||
run HandleDemo 05-handles.txt
|
||||
run InjectionDemo 06-injection.txt
|
||||
{ echo '$ java -version'; "$J" -version 2>&1 | grep -v "Picked up"; echo; echo '$ uname -sr'; uname -sr; } > "$OUT/00-environment.txt"
|
||||
cp target/surefire-reports/com.ankurm.process.ProcessClaimsTest.txt "$OUT/07-tests.txt"
|
||||
echo Done
|
||||
Reference in New Issue
Block a user