Skip to content

Commit 1c4c747

Browse files
committed
feat: use env var to add incubator java option
use the variable test operator to save line length
1 parent 8c6bb21 commit 1c4c747

File tree

1 file changed

+1
-0
lines changed
  • manager/src/main/java/io/aklivity/zilla/manager/internal/commands/install

1 file changed

+1
-0
lines changed

manager/src/main/java/io/aklivity/zilla/manager/internal/commands/install/ZpmInstall.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ private void generateLauncher() throws IOException
704704
Path zillaPath = launcherDir.resolve("zilla");
705705
Files.write(zillaPath, Arrays.asList(
706706
"#!/bin/sh",
707+
"JAVA_OPTIONS+=\"${ZILLA_INCUBATOR_ENABLED:+ -Dzilla.incubator.enabled=$ZILLA_INCUBATOR_ENABLED}\"",
707708
"cd \"${0%/*}\"",
708709
String.format(String.join(" ", Arrays.asList(
709710
"exec %s/bin/java",

0 commit comments

Comments
 (0)