15 lines
279 B
Plaintext
15 lines
279 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# Sometime around Java 23 or 24 this should all be stabilized
|
||
|
|
||
|
if [[ "$JAVA_21" == "" ]]; then
|
||
|
echo '$JAVA_21 not defined!'
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
cp "$1" "/tmp/java.java" || exit 1
|
||
|
|
||
|
"$JAVA_21/bin/java" --source 21 --enable-preview "/tmp/java.java"
|
||
|
|
||
|
rm "/tmp/java.java"
|