diff options
author | Jaikiran Pai <jaikiran@apache.org> | 2019-08-26 15:56:46 +0530 |
---|---|---|
committer | Jaikiran Pai <jaikiran@apache.org> | 2019-08-26 15:56:46 +0530 |
commit | 56ce7f8432a1c6be766d71ed1d628c874e24165a (patch) | |
tree | 66ddfd4c39b2ebdafd2231c30f65c16b0397c367 /test-compatibility.sh | |
parent | 05271caa99c264013044bb477bcc22d84b1ea57d (diff) | |
download | ant-56ce7f8432a1c6be766d71ed1d628c874e24165a.tar.gz |
create the Java 8 install dir in the build directory
Diffstat (limited to 'test-compatibility.sh')
-rwxr-xr-x | test-compatibility.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test-compatibility.sh b/test-compatibility.sh index 4f5d18ab5..ead8878a5 100755 --- a/test-compatibility.sh +++ b/test-compatibility.sh @@ -42,15 +42,15 @@ ant -f fetch.xml -Ddest=optional # This will ensure that Ant built with different (higher) version of Ant # can be used by Java 8 runtime and can function properly for all Ant # functionality -mkdir java-8-latest -cd java-8-latest +mkdir -p build/java-8-latest +cd build/java-8-latest # Download latest Java 8 (we use Adopt OpenJDK binaries) wget https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u222-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u222b10.tar.gz tar -zxf ./*.tar.gz # set JAVA_HOME to point to the newly extracted tar's content export JAVA_HOME="`echo \`pwd\`/\`echo */\``" export PATH="${JAVA_HOME}"/bin:$PATH -cd .. +cd ../.. echo "Using \"${JAVA_HOME}\" to run Ant tests" java -version |