diff options
author | Artur Signell <artur@vaadin.com> | 2012-09-04 16:42:25 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-09-09 11:23:20 +0300 |
commit | 7b25d8b203b8f04bcebcc5fb702582baf7cfefa6 (patch) | |
tree | b48cafe3b7e51da1c0b820d4a22b6bb7a275dd3f /build.xml | |
parent | e50ca7fe96d11a5c3f2328c4fdb76905e68c5062 (diff) | |
download | vaadin-framework-7b25d8b203b8f04bcebcc5fb702582baf7cfefa6.tar.gz vaadin-framework-7b25d8b203b8f04bcebcc5fb702582baf7cfefa6.zip |
Java version check (#9299)
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -14,7 +14,7 @@ </subant> </target> - <target name="buildorder"> + <target name="buildorder" depends="official.build.checks"> <!-- Find out a good build order --> <ivy:buildlist reference="build-path"> <fileset dir="." includes="**/build.xml"> @@ -38,4 +38,12 @@ </subant> </target> + <target name="official.build.checks" if="official.build"> + <condition property="java.version.matches"> + <equals arg1="${ant.java.version}" arg2="${vaadin.java.version}" /> + </condition> + <fail unless="java.version.matches" message="Java version is ${ant.java.version}, but Vaadin must be compiled with genuine Java ${vaadin.java.version} compiler." /> + <echo>Java version is ${ant.java.version} as required.</echo> + </target> + </project> |