New posts
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# Writes output/14-structured-task-scope-preview.txt: what javac and java say about StructuredTaskScope on this JDK.
|
||||
set -u
|
||||
cd "$(dirname "$0")/.."
|
||||
OUT=output/14-structured-task-scope-preview.txt
|
||||
WORK=$(mktemp -d)
|
||||
mkdir -p output
|
||||
{
|
||||
echo "# JDK: $(java -version 2>&1 | grep -v JAVA_TOOL | head -1)"
|
||||
echo '$ javac --release 25 ScopeProbe.java'
|
||||
javac --release 25 -d "$WORK/plain" preview/ScopeProbe.java 2>&1 | grep -v JAVA_TOOL | sed "s#preview/##"
|
||||
echo '$ javac --release 25 --enable-preview ScopeProbe.java'
|
||||
javac --release 25 --enable-preview -d "$WORK/preview" preview/ScopeProbe.java 2>&1 | grep -v JAVA_TOOL | sed "s#preview/##"
|
||||
echo '$ java -cp preview-classes ScopeProbe'
|
||||
java -cp "$WORK/preview" ScopeProbe 2>&1 | grep -v JAVA_TOOL || true
|
||||
echo "$ java --enable-preview -cp preview-classes ScopeProbe"
|
||||
java --enable-preview -cp "$WORK/preview" ScopeProbe 2>&1 | grep -v JAVA_TOOL
|
||||
} > "$OUT"
|
||||
rm -rf "$WORK"
|
||||
cat "$OUT"
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# Regenerates every file in output/. Needs JDK 25 and Maven on the PATH; no API key, no network except Maven Central.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
(cd .. && mvn -B -q test -pl agentic-patterns) # tests write output/01..13
|
||||
bash scripts/probe-structured-task-scope.sh >/dev/null # writes output/14
|
||||
ls -1 output
|
||||
Reference in New Issue
Block a user