You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.xml 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0"?>
  2. <project name="vaadin" basedir="." default="package" xmlns:ivy="antlib:org.apache.ivy.ant">
  3. <include file="common.xml" as="common" />
  4. <path id="vaadin.buildhelpers.classpath" location="${vaadin.basedir}/buildhelpers/result/classes" />
  5. <!-- =================================
  6. target: all
  7. ================================= -->
  8. <!--<target name="all" description="Compiles all parts of the project" depends="buildhelpers,theme-compiler,shared,server,client">-->
  9. <target name="package" description="Compiles and packages all modules in the project" depends="buildorder">
  10. <subant buildpathref="build-path" target="publish-local">
  11. </subant>
  12. </target>
  13. <target name="buildorder" depends="official.build.checks">
  14. <!-- Find out a good build order -->
  15. <ivy:buildlist reference="build-path">
  16. <fileset dir="." includes="**/build.xml">
  17. <exclude name="build.xml" />
  18. <exclude name="build/**" />
  19. </fileset>
  20. </ivy:buildlist>
  21. </target>
  22. <target name="clean" depends="buildorder">
  23. <subant buildpathref="build-path" target="clean">
  24. </subant>
  25. <delete dir="result" />
  26. <!-- Clean IVY cache (~/.ivy2) so no old artifacts are fetched from there (leave everything but Vaadin artifacts) -->
  27. <delete dir="${ivy.cache.dir}/com.vaadin">
  28. </delete>
  29. </target>
  30. <target name="tests" depends="buildorder">
  31. <subant buildpathref="build-path" target="tests">
  32. </subant>
  33. </target>
  34. <target name="official.build.checks" if="official.build">
  35. <condition property="java.version.matches">
  36. <equals arg1="${ant.java.version}" arg2="${vaadin.java.version}" />
  37. </condition>
  38. <fail unless="java.version.matches" message="Java version is ${ant.java.version}, but Vaadin must be compiled with genuine Java ${vaadin.java.version} compiler." />
  39. <echo>Java version is ${ant.java.version} as required.</echo>
  40. </target>
  41. </project>