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 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0"?>
  2. <project name="vaadin-client" basedir="." default="publish-local" xmlns:ivy="antlib:org.apache.ivy.ant">
  3. <description>
  4. Compiles build helpers used when building other
  5. modules.
  6. </description>
  7. <include file="../common.xml" as="common" />
  8. <include file="../build.xml" as="vaadin" />
  9. <include file="../gwt-files.xml" as="gwtfiles" />
  10. <!-- global properties -->
  11. <property name="module.name" value="vaadin-client" />
  12. <property name="module.symbolic" value="com.vaadin.client" />
  13. <property name="result.dir" value="result" />
  14. <path id="classpath.compile.custom">
  15. <!-- Could possibly compile GWT files also here to verify that a)
  16. the same dependencies are used and b) all dependencies have been declared -->
  17. <fileset file="${gwt.user.jar}" />
  18. </path>
  19. <path id="classpath.test.custom" />
  20. <target name="jar">
  21. <property name="jar.file" location="${result.dir}/lib/${module.name}-${vaadin.version}.jar" />
  22. <antcall target="common.jar">
  23. <reference refid="client.gwt.includes" torefid="extra.jar.includes" />
  24. </antcall>
  25. <jar destfile="${jar.file}" update="true">
  26. <manifest>
  27. <attribute name="Vaadin-Package-Version" value="1" />
  28. <attribute name="Vaadin-Widgetsets" value="com.vaadin.DefaultWidgetSet" />
  29. </manifest>
  30. </jar>
  31. <!-- Hack to add validation dependency with source classifier -->
  32. <property name="pom.xml" location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" />
  33. <copy file="${pom.xml}" tofile="${temp.pom}">
  34. <filterchain>
  35. <replacestring from=" &lt;/dependencies&gt;" to=" &lt;dependency&gt;
  36. &lt;groupId&gt;javax.validation&lt;/groupId&gt;
  37. &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
  38. &lt;version&gt;1.0.0.GA&lt;/version&gt;
  39. &lt;scope&gt;compile&lt;/scope&gt;
  40. &lt;classifier&gt;sources&lt;/classifier&gt;
  41. &lt;/dependency&gt;
  42. &lt;/dependencies&gt;" />
  43. </filterchain>
  44. </copy>
  45. <move file="${temp.pom}" tofile="${pom.xml}" />
  46. </target>
  47. <target name="publish-local" depends="jar">
  48. <antcall target="common.sources.jar">
  49. <reference torefid="extra.jar.includes" refid="client.gwt.includes" />
  50. </antcall>
  51. <antcall target="common.javadoc.jar" />
  52. <antcall target="common.publish-local" />
  53. </target>
  54. <target name="clean">
  55. <antcall target="common.clean" />
  56. </target>
  57. <target name="checkstyle">
  58. <antcall target="common.checkstyle">
  59. <param name="cs.src" location="src" />
  60. </antcall>
  61. </target>
  62. <target name="test" depends="checkstyle">
  63. <antcall target="common.test.run" />
  64. </target>
  65. </project>