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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0"?>
  2. <project name="vaadin-client" basedir="." default="publish-local">
  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. <fileset file="${gwt.elemental.jar}" />
  19. </path>
  20. <path id="classpath.test.custom" />
  21. <target name="jar">
  22. <property name="jar.file"
  23. location="${result.dir}/lib/${module.name}-${vaadin.version}.jar" />
  24. <antcall target="common.jar">
  25. <reference refid="client.gwt.includes" torefid="extra.jar.includes" />
  26. </antcall>
  27. <jar destfile="${jar.file}" update="true">
  28. <manifest>
  29. <attribute name="Vaadin-Package-Version"
  30. value="1" />
  31. <attribute name="Vaadin-Widgetsets" value="com.vaadin.DefaultWidgetSet" />
  32. </manifest>
  33. </jar>
  34. <!-- Hack to add validation dependency with source classifier -->
  35. <property name="pom.xml"
  36. location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" />
  37. <copy file="${pom.xml}" tofile="${temp.pom}">
  38. <filterchain>
  39. <replacestring from=" &lt;/dependencies&gt;"
  40. to=" &lt;dependency&gt;
  41. &lt;groupId&gt;javax.validation&lt;/groupId&gt;
  42. &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
  43. &lt;version&gt;1.0.0.GA&lt;/version&gt;
  44. &lt;scope&gt;compile&lt;/scope&gt;
  45. &lt;classifier&gt;sources&lt;/classifier&gt;
  46. &lt;/dependency&gt;
  47. &lt;/dependencies&gt;" />
  48. </filterchain>
  49. </copy>
  50. <move file="${temp.pom}" tofile="${pom.xml}" />
  51. </target>
  52. <target name="publish-local" depends="jar">
  53. <antcall target="common.sources.jar">
  54. <reference torefid="extra.jar.includes" refid="client.gwt.includes" />
  55. </antcall>
  56. <antcall target="common.javadoc.jar" />
  57. <antcall target="common.publish-local" />
  58. </target>
  59. <target name="clean">
  60. <antcall target="common.clean" />
  61. </target>
  62. <target name="checkstyle">
  63. <antcall target="common.checkstyle">
  64. <param name="cs.src" location="src" />
  65. </antcall>
  66. </target>
  67. <target name="test" depends="checkstyle">
  68. <antcall target="common.test.run" />
  69. </target>
  70. </project>