summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-09-04 16:42:25 +0300
committerArtur Signell <artur@vaadin.com>2012-09-09 11:23:20 +0300
commit7b25d8b203b8f04bcebcc5fb702582baf7cfefa6 (patch)
treeb48cafe3b7e51da1c0b820d4a22b6bb7a275dd3f /build.xml
parente50ca7fe96d11a5c3f2328c4fdb76905e68c5062 (diff)
downloadvaadin-framework-7b25d8b203b8f04bcebcc5fb702582baf7cfefa6.tar.gz
vaadin-framework-7b25d8b203b8f04bcebcc5fb702582baf7cfefa6.zip
Java version check (#9299)
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml10
1 files changed, 9 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 44965003c0..85a7ed547a 100644
--- a/build.xml
+++ b/build.xml
@@ -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>