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.

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