From 455cde25c650912fabdc383f99d39e731d02db85 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Sat, 4 Jan 2025 17:25:20 +0100 Subject: [PATCH] docs: Add //PREVIEW (#1894) --- docs/modules/ROOT/pages/running.adoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/modules/ROOT/pages/running.adoc b/docs/modules/ROOT/pages/running.adoc index 73fb3b02b..cf20ea7ee 100644 --- a/docs/modules/ROOT/pages/running.adoc +++ b/docs/modules/ROOT/pages/running.adoc @@ -72,6 +72,19 @@ Since Java 9 https://docs.oracle.com/javase/9/tools/java.htm#GUID-3B1CE181-CD30- For Java 8 and if you want to set explicitly only for `jbang` you can also add flags by setting `JBANG_JAVA_OPTIONS` and `JBANG_JAVAC_OPTIONS` respectively. +== Preview + +The example above can alternatively also be written with `PREVIEW` instead of `--enable-preview`, like this: + +[source, java] +---- +///usr/bin/env jbang "$0" "$@" ; exit $? +//JAVA 14+ +//PREVIEW + +... +---- + == Module support (EXPERIMENTAL)