Skip to content

Commit cfdef38

Browse files
committed
Add setjava to builder script
1 parent d0f551e commit cfdef38

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.kokoro/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ source ${scriptDir}/common.sh
2727
# require JDK 11 to compile the classes touching GraalVM classes.
2828
if [ -n "${JAVA11_HOME}" ]; then
2929
setJava "${JAVA11_HOME}"
30+
echo "Java: ${JAVA}"
3031
fi
3132

3233

.kokoro/common.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ function msg() { println "$*" >&2; }
5858
function println() { printf '%s\n' "$(now) $*"; }
5959
function setJava() {
6060
export JAVA=$1/bin/java
61+
export JAVA_HOME=$1
62+
export PATH=${JAVA_HOME}/bin:$PATH
6163
}
6264

6365
## Helper comment to trigger updated repo dependency release

0 commit comments

Comments
 (0)