This is an automated email from the ASF dual-hosted git repository. jaikiran pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ant.git
The following commit(s) were added to refs/heads/master by this push: new 508e0f3 Make it easier, during release, to verify that JDK9+ is being used 508e0f3 is described below commit 508e0f3facef2552d06b56d39d7208fcd62d49ba Author: Jaikiran Pai <jaiki...@apache.org> AuthorDate: Tue Mar 19 11:00:22 2019 +0530 Make it easier, during release, to verify that JDK9+ is being used --- ReleaseInstructions | 12 ++++++++++++ build.xml | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ReleaseInstructions b/ReleaseInstructions index 9d25fb4..3c5f1e5 100644 --- a/ReleaseInstructions +++ b/ReleaseInstructions @@ -43,6 +43,10 @@ Note: This document was adapted from the one created in the context of the right year and commit and push the change upstream, before starting any release process. + There are certain features that require JDK 9+ version to be used + while releasing Ant 1.10.x from master branch. Make sure JAVA_HOME + points to a JDK installation which is minimally Java 9. + 3. We don't want tags for failed votes to end up on our branches so the release is first created from a detached head. @@ -74,6 +78,14 @@ Note: This document was adapted from the one created in the context of 6. Next bootstrap, build and run the tests. $ ./bootstrap.sh + + Make sure the log messages doesn't contain the message: + + "Java 9+ features won't be available in the distribution" + + If it does, then it's a sign that JAVA_HOME isn't pointing to a JDK 9+ version. + Fix JAVA_HOME to point to a valid JDK 9+ version and redo the release steps. + $ ./build.sh $ ./build.sh test # if you've got maven installed diff --git a/build.xml b/build.xml index e57f672..6e24935 100644 --- a/build.xml +++ b/build.xml @@ -952,7 +952,7 @@ Create the essential distribution that can run Apache Ant =================================================================== --> - <target name="dist-lite" depends="jars,test-jar" + <target name="dist-lite" depends="jars,test-jar,-ant-dist-warn-jdk9+" description="--> creates a minimum distribution to run Apache Ant"> <mkdir dir="${dist.dir}"/> @@ -2008,6 +2008,10 @@ ${antunit.reports} <echo>AntUnit tests must be run with ${bootstrap.dir} (or ${dist.dir}), not ${ant.home}. Try './build.sh antunit-tests' for example.</echo> </target> + <target name="-ant-dist-warn-jdk9+" unless="jdk9+"> + <echo>Java 9+ features won't be available in the distribution</echo> + </target> + <target name="antunit-tests" depends="build,test-init,-antunit-warn-location" if="run.antunit" description="--> run the antunit tests"> <condition property="antunit.includes" value="${antunit.testcase}"