summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
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>