mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-20 00:15:29 +00:00
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:
1 parent
747347793d
commit
2c202e9c95
1 file changed
+1
-12
@@ -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>
|
||||
|
||||
|
||||
Reference in new issue
Block a user