Compare commits

...

2 Commits

Author SHA1 Message Date
d8a7589e5e Merge pull request 'Feature: Remove jvm-impl choice since Adoptium only offers hotspot impl' (#6) from feature/remove_jvm_impl_choice into develop
Reviewed-on: #6
2024-05-12 08:51:49 +02:00
david
1b395c6c68 Feature: Remove jvm-impl choice since Adoptium only offers hotspot impl
All checks were successful
continuous-integration/drone/pr Build is passing
2024-05-12 08:48:01 +02:00

17
warp4j
View File

@ -37,8 +37,6 @@ function print_help {
echo ' --windows create binary for Windows'
echo ' if no targets are specified then binaries for'
echo ' all targets are created'
echo ' --jvm-impl jvm implementation: hotspot or openj9'
echo ' (default: hotspot)'
echo ' --jvm-options <options>'
echo ' passed to java like this:'
echo ' "java <options> -jar <jar file>";'
@ -147,10 +145,6 @@ while [[ $# -gt 0 ]]; do
TARGETS+=($WIN)
shift
;;
--jvm-impl)
JVM_IMPL="$2"
shift 2
;;
--jvm-options)
JVM_OPTIONS="$2"
shift 2
@ -231,22 +225,13 @@ if [[ $JAVA_VERSION ]] && ! java_version_is_correct $JAVA_VERSION ; then
fail_with "JDK version \"$JAVA_VERSION\" is not correct"
fi
JVM_IMPL_HOTSPOT=hotspot
JVM_IMPL_OPENJ9=openj9
# validate jvm implementation
if [[ $JVM_IMPL ]] &&
[[ $JVM_IMPL != $JVM_IMPL_HOTSPOT ]] &&
[[ $JVM_IMPL != $JVM_IMPL_OPENJ9 ]]; then
fail_with "jvm implementation \"$JVM_IMPL\" is not correct"
fi
JVM_IMPL=hotspot
LATEST_LTS=17 # latest LTS java branch
# default options
test -z $JAVA_VERSION && JAVA_VERSION=$LATEST_LTS
test -z $TARGETS && TARGETS=($LIN $MAC $WIN)
test -z $JVM_IMPL && JVM_IMPL=$JVM_IMPL_HOTSPOT
# returns java branch version
function get_base_version() {