add a config.sh file to configure JVM/JDK at build time

This commit is contained in:
idk
2022-04-20 14:09:40 -04:00
parent 9be28a53fd
commit c14287048f
2 changed files with 12 additions and 0 deletions

View File

@ -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\- ')

6
config.sh Normal file
View File

@ -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