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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0"?>
  2. <project name="vaadin-client" basedir="." default="publish-local"
  3. xmlns:ivy="antlib:org.apache.ivy.ant">
  4. <description>
  5. Compiles build helpers used when building other 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"
  22. 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"
  29. value="1" />
  30. <attribute name="Vaadin-Widgetsets" value="com.vaadin.DefaultWidgetSet" />
  31. </manifest>
  32. </jar>
  33. <!-- Hack to add validation dependency with source classifier -->
  34. <property name="pom.xml"
  35. location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" />
  36. <copy file="${pom.xml}" tofile="${temp.pom}">
  37. <filterchain>
  38. <replacestring from=" &lt;/dependencies&gt;"
  39. to=" &lt;dependency&gt;
  40. &lt;groupId&gt;javax.validation&lt;/groupId&gt;
  41. &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
  42. &lt;version&gt;1.0.0.GA&lt;/version&gt;
  43. &lt;scope&gt;compile&lt;/scope&gt;
  44. &lt;classifier&gt;sources&lt;/classifier&gt;
  45. &lt;/dependency&gt;
  46. &lt;/dependencies&gt;" />
  47. </filterchain>
  48. </copy>
  49. <move file="${temp.pom}" tofile="${pom.xml}" />
  50. </target>
  51. <target name="publish-local" depends="jar">
  52. <antcall target="common.sources.jar">
  53. <reference torefid="extra.jar.includes" refid="client.gwt.includes" />
  54. </antcall>
  55. <antcall target="common.javadoc.jar" />
  56. <antcall target="common.publish-local" />
  57. </target>
  58. <target name="clean">
  59. <antcall target="common.clean" />
  60. </target>
  61. <target name="checkstyle">
  62. <antcall target="common.checkstyle">
  63. <param name="cs.src" location="src" />
  64. </antcall>
  65. </target>
  66. <target name="test" depends="checkstyle">
  67. <antcall target="common.test.run" />
  68. </target>
  69. </project>