File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
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
-
8
- if [ -d " $JDK11 " ]; then
9
- export JAVA_HOME=$JDK11
10
- fi
7
+ export JAVA_HOME=$JDK11
11
8
12
9
export JAVA_VERSION=${JDK:- 11}
13
10
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ 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"
15
17
16
18
if [[ -z " $1 " ]]; then
17
19
echo " usage: $0 <MONGODB_URI>"
@@ -34,10 +36,6 @@ if ! which git ; then
34
36
fi
35
37
36
38
cd src
37
-
38
- RELATIVE_DIR_PATH=" $( dirname " ${BASH_SOURCE:- $0 } " ) "
39
- . " ${RELATIVE_DIR_PATH} /javaConfig.bash"
40
-
41
39
./gradlew -version
42
40
43
41
echo " Running tests..."
You can’t perform that action at this time.
0 commit comments