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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0"?>
  2. <project name="vaadin-shared" basedir="." default="publish-local"
  3. xmlns:ivy="antlib:org.apache.ivy.ant">
  4. <description>
  5. The shared module containing classes used by both server and client.
  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-shared" />
  12. <property name="module.symbolic" value="com.vaadin.shared" />
  13. <property name="result.dir" location="result" />
  14. <property name="src.filtered" location="${result.dir}/filtered-src" />
  15. <property name="src" location="${src.filtered}" />
  16. <path id="classpath.compile.custom">
  17. <fileset file="${gwt.elemental.jar}" />
  18. </path>
  19. <path id="classpath.test.custom" />
  20. <target name="jar">
  21. <property name="shared.osgi.import"
  22. value="com.google.gwt.thirdparty.streamhtmlparser;version=&quot;0.0.10.vaadin1&quot;, com.google.gwt.thirdparty.streamhtmlparser.impl;version=&quot;0.0.10.vaadin1&quot;, com.google.gwt.thirdparty.streamhtmlparser.util;version=&quot;0.0.10.vaadin1&quot;, org.w3c.flute.parser;version=&quot;1.3.0.gg2&quot;, org.w3c.flute.parser.selectors;version=&quot;1.3.0.gg2&quot;, org.w3c.flute.util;version=&quot;1.3.0.gg2&quot;" />
  23. <property name="shared.osgi.require-bundle"
  24. value="com.google.gwt.thirdparty.guava;bundle-version=&quot;16.0.1.vaadin1&quot;" />
  25. <delete dir="${src.filtered}" />
  26. <!-- Update version in Version.java -->
  27. <copy todir="${src.filtered}">
  28. <fileset dir="src">
  29. </fileset>
  30. <filterchain>
  31. <replacetokens begintoken="@" endtoken="@">
  32. <token key="VERSION" value="${vaadin.version}" />
  33. </replacetokens>
  34. </filterchain>
  35. </copy>
  36. <antcall target="common.jar">
  37. <param name="import-package" value="${shared.osgi.import}" />
  38. <param name="require-bundle" value="${shared.osgi.require-bundle}" />
  39. <reference refid="shared.gwt.includes" torefid="extra.jar.includes" />
  40. <param name="osgi.extra.package.prefixes" value="elemental" />
  41. </antcall>
  42. </target>
  43. <target name="publish-local" depends="jar">
  44. <antcall target="common.sources.jar">
  45. <reference torefid="extra.jar.includes" refid="shared.gwt.includes" />
  46. </antcall>
  47. <antcall target="common.javadoc.jar" />
  48. <antcall target="common.publish-local" />
  49. </target>
  50. <target name="clean">
  51. <antcall target="common.clean" />
  52. </target>
  53. <target name="checkstyle">
  54. <antcall target="common.checkstyle">
  55. <param name="cs.src" location="src" />
  56. </antcall>
  57. </target>
  58. <target name="test" depends="checkstyle">
  59. <antcall target="common.test.run" />
  60. </target>
  61. </project>