< prev index next >
src/java.base/share/native/libjli/args.c
Print this page
@@ -32,11 +32,11 @@
#ifdef DEBUG_ARGFILE
#ifndef NO_JNI
#define NO_JNI
#endif
#define JLI_ReportMessage(...) printf(__VA_ARGS__)
- #define JAVA_OPTIONS "JAVA_OPTIONS"
+ #define JDK_JAVA_OPTIONS "JDK_JAVA_OPTIONS"
int IsWhiteSpaceOption(const char* name) { return 1; }
#else
#include "java.h"
#endif
@@ -427,14 +427,10 @@
JLI_StrCmp(arg, "-fullversion") == 0 ||
JLI_StrCmp(arg, "--full-version") == 0;
}
jboolean JLI_AddArgsFromEnvVar(JLI_List args, const char *var_name) {
-
-#ifndef ENABLE_JAVA_OPTIONS
- return JNI_FALSE;
-#else
char *env = getenv(var_name);
char *p, *arg;
char quote;
JLI_List argsInFile;
@@ -517,11 +513,10 @@
assert (*env == '\0' || isspace(*env));
}
return JNI_TRUE;
-#endif
}
#ifdef DEBUG_ARGFILE
/*
* Stand-alone sanity test, build with following command line
< prev index next >