refactor: Extract JDK path into separate variable
This commit is contained in:
parent
88ef34cc6b
commit
9cd7f2498a
5
warp4j
5
warp4j
@ -519,8 +519,9 @@ for target in ${TARGETS[@]}; do
|
|||||||
ensure_distro_unpacked $target $CONCRETE_JAVA_VERSION
|
ensure_distro_unpacked $target $CONCRETE_JAVA_VERSION
|
||||||
done
|
done
|
||||||
|
|
||||||
JLINK=$JAVA_DOWNLOAD_PATH/$THIS_PLATFORM/$CONCRETE_JAVA_VERSION/$UNPACKED_SUBDIR/bin/jlink
|
JDK_PATH=$JAVA_DOWNLOAD_PATH/$THIS_PLATFORM/$CONCRETE_JAVA_VERSION/$UNPACKED_SUBDIR
|
||||||
JDEPS=$JAVA_DOWNLOAD_PATH/$THIS_PLATFORM/$CONCRETE_JAVA_VERSION/$UNPACKED_SUBDIR/bin/jdeps
|
JLINK=$JDK_PATH/bin/jlink
|
||||||
|
JDEPS=$JDK_PATH/bin/jdeps
|
||||||
|
|
||||||
# modules are only needed if JDK optimisation is performed
|
# modules are only needed if JDK optimisation is performed
|
||||||
if [[ $JAVA_DISTRO_TYPE == $DISTRO_TYPE_JDK ]]; then
|
if [[ $JAVA_DISTRO_TYPE == $DISTRO_TYPE_JDK ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user