summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2021-05-14 06:41:20 +0000
committerDominik Stadler <centic@apache.org>2021-05-14 06:41:20 +0000
commit5d719b90162b01cae1b45bc1a66ea9e8fb818e10 (patch)
treee5a5b51aa50929a94452d372f572984455e07273 /build.xml
parentf260abab3b5cce843ac5bcb6e18e8a287d24e28b (diff)
downloadpoi-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.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index f5557a5470..564c105ae8 100644
--- a/build.xml
+++ b/build.xml
@@ -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>