diff options
author | Dominik Stadler <centic@apache.org> | 2021-05-14 06:41:20 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2021-05-14 06:41:20 +0000 |
commit | 5d719b90162b01cae1b45bc1a66ea9e8fb818e10 (patch) | |
tree | e5a5b51aa50929a94452d372f572984455e07273 /build.xml | |
parent | f260abab3b5cce843ac5bcb6e18e8a287d24e28b (diff) | |
download | poi-5d719b90162b01cae1b45bc1a66ea9e8fb818e10.tar.gz poi-5d719b90162b01cae1b45bc1a66ea9e8fb818e10.zip |
Make isJava8 true or false, print out result in "init"
Some CI-builds with Java 11+ seem to still run as "JDK 8" builds...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1889879 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -68,7 +68,7 @@ under the License. <contains string="${java.vendor}" substring="IBM" casesensitive="false"/> </condition> - <condition property="isJava8"> + <condition property="isJava8" else="false"> <equals arg1="${ant.java.version}" arg2="1.8"/> </condition> @@ -615,6 +615,8 @@ under the License. <echo message="Using Ant: ${ant.version} from ${ant.home}, Ant detected Java ${ant.java.version} (may be different than actual Java sometimes...)" /> <echo message="Using Java: ${java.version}/${java.runtime.version}/${java.vm.version}/${java.vm.name} from ${java.vm.vendor} on ${os.name}: ${os.version}" /> <echo message="Building Apache POI version ${version.id} and RC: ${release.rc}, isJava8: ${isJava8}" /> + <echo if:true="${isJava8}">Compiling for Java 8</echo> + <echo unless:true="${isJava8}">Compiling for Java 9+</echo> <loadresource property="RELEASE_TAG"> <string>REL_${version.id}</string> |