File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 4
4
export JDK8=" /opt/java/jdk8"
5
5
export JDK11=" /opt/java/jdk11"
6
6
export JDK17=" /opt/java/jdk17"
7
- export JAVA_HOME=$JDK11
7
+
8
+ if [ -d " $JDK11 " ]; then
9
+ export JAVA_HOME=$JDK11
10
+ fi
8
11
9
12
export JAVA_VERSION=${JDK:- 11}
10
13
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ set -o errexit # Exit the script with error if any of the commands fail
12
12
# ###########################################
13
13
# Main Program #
14
14
# ###########################################
15
- RELATIVE_DIR_PATH=" $( dirname " ${BASH_SOURCE:- $0 } " ) "
16
- . " ${RELATIVE_DIR_PATH} /javaConfig.bash"
17
15
18
16
if [[ -z " $1 " ]]; then
19
17
echo " usage: $0 <MONGODB_URI>"
@@ -36,6 +34,10 @@ if ! which git ; then
36
34
fi
37
35
38
36
cd src
37
+
38
+ RELATIVE_DIR_PATH=" $( dirname " ${BASH_SOURCE:- $0 } " ) "
39
+ . " ${RELATIVE_DIR_PATH} /javaConfig.bash"
40
+
39
41
./gradlew -version
40
42
41
43
echo " Running tests..."
You can’t perform that action at this time.
0 commit comments