Fix version match, and remove debug echos

java.version contains 1.8.0_131 where ant.java.version only contains 1.8
This commit is contained in:
Roel Spilker committed 2018-08-20 21:43:29 +02:00
1 parent 747347793d
commit 2c202e9c95
1 file changed
+1 -12
+1 -12
View File
@@ -162,20 +162,9 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
</target>
<target name="-ensureJdk9">
<echo message="Java version: ${java.version}" />
<condition property="java.version.insufficient">
<or>
<equals arg1="${java.version}" arg2="1.2" />
<equals arg1="${java.version}" arg2="1.3" />
<equals arg1="${java.version}" arg2="1.4" />
<equals arg1="${java.version}" arg2="1.5" />
<equals arg1="${java.version}" arg2="1.6" />
<equals arg1="${java.version}" arg2="1.7" />
<equals arg1="${java.version}" arg2="1.8" />
</or>
<matches string="${java.version}" pattern="^1\.[2-8](\..*)?" />
</condition>
<echo message="Java version insufficient: ${java.version.insufficient}" />
<fail if="java.version.insufficient">To compile lombok, you need JDK9 or higher; lombok requires this version because it's rather difficult to produce lombok builds that are compatible on JDK9 without at least building with JDK9. Sorry about that.</fail>
</target>