diff options
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> |