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.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0"?>
  2. <project name="vaadin-bom" basedir="." default="publish-local"
  3. xmlns:artifact="antlib:org.apache.maven.artifact.ant" xmlns:antcontrib="antlib:net.sf.antcontrib">
  4. <description>
  5. Compiles a BOM (Bill of Materials) Maven artifact
  6. </description>
  7. <include file="../common.xml" as="common" />
  8. <include file="../build.xml" as="vaadin" />
  9. <!-- global properties -->
  10. <property name="module.name" value="vaadin-bom" />
  11. <property name="result.dir" value="result" />
  12. <target name="bom" description="Generates a BOM (Bill of Materials) pom.xml. Either for a snapshot or a release version">
  13. <fail unless="result.dir" message="No result.dir parameter given" />
  14. <condition property="vaadin.maven.version" value="${vaadin.version}">
  15. <isset property="build.release" />
  16. </condition>
  17. <!-- if this wasn't already set by the condition, this is a snapshot -->
  18. <property name="vaadin.maven.version" value="${vaadin.version.major}.${vaadin.version.minor}-SNAPSHOT" />
  19. <property name="bom.xml" location="${result.dir}/lib/vaadin-bom-${vaadin.version}.pom" />
  20. <copy file="vaadin-bom.pom" tofile="${bom.xml}" overwrite="true">
  21. <filterchain>
  22. <replacestring from="@vaadin.version@" to="${vaadin.maven.version}" />
  23. </filterchain>
  24. </copy>
  25. </target>
  26. <target name="publish-local" depends="bom">
  27. <antcall target="common.publish-local" />
  28. </target>
  29. <target name="clean">
  30. <antcall target="common.clean" />
  31. </target>
  32. <target name="checkstyle">
  33. <!-- No code in this module -->
  34. </target>
  35. <target name="test" depends="checkstyle">
  36. <!-- No tests for this BOM.. -->
  37. </target>
  38. </project>