Skip to content

Commit

Permalink
Add RH specific installation modules for Java 21 installer (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
RadekCap authored Nov 10, 2023
1 parent 1b9f5a5 commit 949608b
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions wrapper/configure-vendor-specific-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,29 @@ function configureAdoptiumSpecificSettings() {
# todorc: configure Adoptium registry values
}

# there are specific targets for every major version, let's confugure default values for them
# there are specific targets for every major version, let's configure default values for them
function configureRHSpecificSettings() {
if [[ $OTOOL_JDK_VERSION -eq 21 ]]; then
export INSTALL_MODULES="jdk,jdk_registry_runtime,jdk_env_path"
fi

if [[ $OTOOL_JDK_VERSION -eq 17 ]]; then
export INSTALL_MODULES="jdk,jdk_registry_runtime,jdk_env_path"
elif [[ $OTOOL_JDK_VERSION -eq 11 ]]; then
export INSTALL_MODULES="jdk,jdk_registry_standard,jdk_env_path"
else
case $OTOOL_JDK_VERSION in
8)
export INSTALL_MODULES="jdk,jdk_devel,jdk_registry_standard,jdk_registry_standard_devel,jdk_env_path"
fi
;;
11)
export INSTALL_MODULES="jdk,jdk_registry_standard,jdk_env_path"
;;
17)
export INSTALL_MODULES="jdk,jdk_registry_runtime,jdk_env_path"
;;
21)
export INSTALL_MODULES="jdk,jdk_registry_runtime,jdk_env_path"
;;
*)
echo "Unsupported JDK version."
;;
esac

if [[ $(ls "$INPUT_FOLDER" | grep "java-1.8.0-openjdk") ]]; then
export JDK_REG="HKLM\Software\JavaSoft\Java Development Kit"
Expand All @@ -51,4 +61,4 @@ function configureRHSpecificSettings() {
echo "don't know the java version"
exit 1
fi
}
}

0 comments on commit 949608b

Please sign in to comment.