| 1 | Author: Simon Frankenberger <[email protected]>
|
| 2 | Subject: Fix java version check
|
| 3 |
|
| 4 | The java version check only detects java 17, 18, 19
|
| 5 | and does not work with java 20+. This patch fixes the regex.
|
| 6 |
|
| 7 | |
| 8 | |
| 9 | @@ -174,7 +174,7 @@
|
| 10 | <target name="-check-java-version?">
|
| 11 | <echo></echo>
|
| 12 | <condition property="check-java-version.passed">
|
| 13 | - <matches pattern="1[789]+.*" string="${ant.java.version}"/>
|
| 14 | + <matches pattern="(1[789]+|2[0-9]+).*" string="${ant.java.version}"/>
|
| 15 | </condition>
|
| 16 | <fail unless="check-java-version.passed">
|
| 17 | .${line.separator}${line.separator}
|