forked from I2P_Developers/i2p.i2p
Enforce min java version in build.xml
This commit is contained in:
12
build.xml
12
build.xml
@@ -2,8 +2,9 @@
|
|||||||
<project basedir="." default="all" name="i2p"
|
<project basedir="." default="all" name="i2p"
|
||||||
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
|
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
|
||||||
|
|
||||||
<!-- for javac "release" parameter -->
|
<!-- for javaversion condition -->
|
||||||
<property name="ant.minimumVersion" value="1.9.8"/>
|
<property name="ant.minimumVersion" value="1.10.2"/>
|
||||||
|
<property name="java.minimumVersion" value="17"/>
|
||||||
|
|
||||||
<!-- Include property files so that values can be easily overridden.
|
<!-- Include property files so that values can be easily overridden.
|
||||||
Users should create an override.properties file to make changes.
|
Users should create an override.properties file to make changes.
|
||||||
@@ -432,6 +433,13 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="buildProperties" depends="getGitRev, getReleaseNumber, getBuildNumber, setBuildTimestamp, disableManifestClasspath" >
|
<target name="buildProperties" depends="getGitRev, getReleaseNumber, getBuildNumber, setBuildTimestamp, disableManifestClasspath" >
|
||||||
|
<fail message="FATAL: Minimum Java version is ${java.minimumVersion} - your Java version is ${java.version}">
|
||||||
|
<condition>
|
||||||
|
<not>
|
||||||
|
<javaversion atleast="${java.minimumVersion}"/>
|
||||||
|
</not>
|
||||||
|
</condition>
|
||||||
|
</fail>
|
||||||
<antversion property="antversion"/>
|
<antversion property="antversion"/>
|
||||||
<fail message="FATAL: Minimum Ant version is ${ant.minimumVersion} - your Ant version is ${antversion}">
|
<fail message="FATAL: Minimum Ant version is ${ant.minimumVersion} - your Ant version is ${antversion}">
|
||||||
<condition>
|
<condition>
|
||||||
|
|||||||
Reference in New Issue
Block a user