From 9cd7f2498a8157ac367a3a21c049514843a61ff9 Mon Sep 17 00:00:00 2001 From: Serge Guzik Date: Wed, 13 Feb 2019 13:08:14 +0200 Subject: [PATCH] refactor: Extract JDK path into separate variable --- warp4j | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/warp4j b/warp4j index f67d4a7..1ab20f9 100755 --- a/warp4j +++ b/warp4j @@ -519,8 +519,9 @@ for target in ${TARGETS[@]}; do ensure_distro_unpacked $target $CONCRETE_JAVA_VERSION done -JLINK=$JAVA_DOWNLOAD_PATH/$THIS_PLATFORM/$CONCRETE_JAVA_VERSION/$UNPACKED_SUBDIR/bin/jlink -JDEPS=$JAVA_DOWNLOAD_PATH/$THIS_PLATFORM/$CONCRETE_JAVA_VERSION/$UNPACKED_SUBDIR/bin/jdeps +JDK_PATH=$JAVA_DOWNLOAD_PATH/$THIS_PLATFORM/$CONCRETE_JAVA_VERSION/$UNPACKED_SUBDIR +JLINK=$JDK_PATH/bin/jlink +JDEPS=$JDK_PATH/bin/jdeps # modules are only needed if JDK optimisation is performed if [[ $JAVA_DISTRO_TYPE == $DISTRO_TYPE_JDK ]]; then