You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 11, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: scripts/packages/template_bin.sh
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -115,13 +115,20 @@ if [ -z "${JAVA_HOME-}" ]; then
115
115
;;
116
116
esac
117
117
fi
118
-
if [ !-x"${JAVA_HOME}/bin/javac" ];then
119
-
echo>&2
120
-
echo"Java not found, please install the corresponding package">&2
121
-
echo"See http://bazel.build/docs/install.html for more information on">&2
122
-
echo"dependencies of Bazel.">&2
123
-
exit 1
124
-
fi
118
+
119
+
# Only check for an installed JDK if this version of Bazel does not contain a
120
+
# bundled JDK.
121
+
case"$0"in
122
+
*without-jdk*)
123
+
if [ !-x"${JAVA_HOME}/bin/javac" ];then
124
+
echo>&2
125
+
echo"Java not found, please install the corresponding package.">&2
126
+
echo"See http://bazel.build/docs/install.html for more information on">&2
0 commit comments