On 2022-02-07, <[email protected]> wrote:
> - if [ "$JAVA_SPEC_VERSION" = "java.specification.version=18" ]; then
> + if [ "$JAVA_SPEC_VERSION" = "java.specification.version=18" ] || [
> "$JAVA_SPEC_VERSION" = "java.specification.version=19" ]; then
Bourne shell's case may make this more
readable (not sure whether there is a Windows batch file equivalent)
case $JAVA_SPEC_VERSION in
java.specification.version=18 | \
java.specification.version=19 )
...
;;
esac
But I'm afraid this is not going to scale :-)
In the long run we probably are better off by enumerating the JDKs where
we don't want to set the property (ten from 8 to 17, but this is a fixed
list that doesn't need to change with every release).
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]