This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-daemon.git
The following commit(s) were added to refs/heads/master by this push: new fbc83b1 Update arguments.c to support Java 11 --enable-preview (#18) fbc83b1 is described below commit fbc83b1c99e214b276a9b3704cfb31a55274b584 Author: mads1980 <m...@renxo.com> AuthorDate: Fri Jun 26 11:11:14 2020 -0300 Update arguments.c to support Java 11 --enable-preview (#18) * Update arguments.c * Update help.c * Changed comments: Java 12 to 11 --- src/native/unix/native/arguments.c | 4 ++++ src/native/unix/native/help.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/native/unix/native/arguments.c b/src/native/unix/native/arguments.c index 8160c72..72c6ea0 100644 --- a/src/native/unix/native/arguments.c +++ b/src/native/unix/native/arguments.c @@ -422,6 +422,10 @@ static arg_data *parse(int argc, char *argv[]) else if (!strncmp(argv[x], "--illegal-access=", 17)) { args->opts[args->onum++] = strdup(argv[x]); } + /* Java 11 specific options */ + else if (!strncmp(argv[x], "--enable-preview", 16)) { + args->opts[args->onum++] = strdup(argv[x]); + } else if (*argv[x] == '-') { log_error("Invalid option %s", argv[x]); return NULL; diff --git a/src/native/unix/native/help.c b/src/native/unix/native/help.c index 5505656..2ac483d 100644 --- a/src/native/unix/native/help.c +++ b/src/native/unix/native/help.c @@ -121,6 +121,8 @@ void help(home_data *data) printf(" --illegal-access=<value>\n"); printf(" Java 9 --illegal-access option. Passed as it is to JVM.\n"); printf(" Refer java help for possible values.\n"); + printf(" --enable-preview\n"); + printf(" Java 11 --enable-preview option. Passed as it is to JVM\n"); printf("\njsvc (Apache Commons Daemon) " JSVC_VERSION_STRING "\n"); printf("Copyright (c) 1999-2019 Apache Software Foundation.\n");