From c14287048f43ffed1affbbcac65547d03e1d43e4 Mon Sep 17 00:00:00 2001 From: idk Date: Wed, 20 Apr 2022 14:09:40 -0400 Subject: [PATCH] add a config.sh file to configure JVM/JDK at build time --- build.sh | 6 ++++++ config.sh | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 config.sh diff --git a/build.sh b/build.sh index 4cb51f5..83862f2 100755 --- a/build.sh +++ b/build.sh @@ -10,6 +10,12 @@ if [ -f i2pversion_override ]; then . i2pversion_override fi +. config.sh + +if [ -f config_overide.sh ]; then + . config_override.sh +fi + COUNT="Ten Nine Eight Seven Six Five Four Three Two One" JAVA=$(java --version | tr -d 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\n' | cut -d ' ' -f 2 | cut -d '.' -f 1 | tr -d '\n\t\- ') diff --git a/config.sh b/config.sh new file mode 100644 index 0000000..8d477ea --- /dev/null +++ b/config.sh @@ -0,0 +1,6 @@ + +#If you need to use a different JVM, JDK, or other utility from +#build.sh, set it in this file, for example: +#PATH="$PATH:/c/Program Files/OpenJDK/jdk-17.0.2/bin/" +#JAVA_HOME="/c/Program Files\OpenJDK\jdk-17.0.2" +#to use it for Oracle OpenJDK17 \ No newline at end of file