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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. Compiles build helpers used when building other
  6. modules.
  7. </description>
  8. <include file="../common.xml" as="common" />
  9. <include file="../build.xml" as="vaadin" />
  10. <include file="../gwt-files.xml" as="gwtfiles" />
  11. <!-- global properties -->
  12. <property name="module.name" value="vaadin-shared" />
  13. <property name="module.symbolic" value="com.vaadin.shared" />
  14. <property name="result.dir" location="result" />
  15. <property name="src.filtered" location="${result.dir}/filtered-src" />
  16. <property name="src" location="${src.filtered}" />
  17. <path id="classpath.compile.custom">
  18. <fileset file="${gwt.elemental.jar}" />
  19. </path>
  20. <path id="classpath.test.custom" />
  21. <target name="jar">
  22. <property name="shared.osgi.import"
  23. value="com.google.gwt.thirdparty.guava.common.annotations;version=&quot;16.0.1.vaadin1&quot;, com.google.gwt.thirdparty.guava.common.base;version=&quot;16.0.1.vaadin1&quot;, com.google.gwt.thirdparty.guava.common.base.internal;version=&quot;16.0.1.vaadin1&quot;, com.google.gwt.thirdparty.guava.common.cache;version=&quot;16.0.1.vaadin1&quot;, com.google.gwt.thirdparty.guava.common.collect;version=&quot;16.0.1.vaadin1&quot;, com.google.gwt.thirdparty.guava.common.eventbus;version=&quot;16.0.1.vaadin1&quot;, com.google.gwt.thirdparty.guava.common.io;version=&quot;16.0.1.vaadin1&quot;, com.google.gwt.thirdparty.guava.common.net;version=&quot;16.0.1.vaadin1&quot;, com.google.gwt.thirdparty.guava.common.primitives;version=&quot;16.0.1.vaadin1&quot;, com.google.gwt.thirdparty.guava.common.util.concurrent;version=&quot;16.0.1.vaadin1&quot;, 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;" />
  24. <delete dir="${src.filtered}" />
  25. <!-- Update version in Version.java -->
  26. <copy todir="${src.filtered}">
  27. <fileset dir="src">
  28. </fileset>
  29. <filterchain>
  30. <replacetokens begintoken="@" endtoken="@">
  31. <token key="VERSION" value="${vaadin.version}" />
  32. </replacetokens>
  33. </filterchain>
  34. </copy>
  35. <antcall target="common.jar">
  36. <param name="import-package" value="${shared.osgi.import}" />
  37. <reference refid="shared.gwt.includes" torefid="extra.jar.includes" />
  38. <param name="osgi.extra.package.prefixes" value="elemental" />
  39. </antcall>
  40. </target>
  41. <target name="publish-local" depends="jar">
  42. <antcall target="common.sources.jar">
  43. <reference torefid="extra.jar.includes" refid="shared.gwt.includes" />
  44. </antcall>
  45. <antcall target="common.javadoc.jar" />
  46. <antcall target="common.publish-local" />
  47. </target>
  48. <target name="clean">
  49. <antcall target="common.clean" />
  50. </target>
  51. <target name="checkstyle">
  52. <antcall target="common.checkstyle">
  53. <param name="cs.src" location="src" />
  54. </antcall>
  55. </target>
  56. <target name="test" depends="checkstyle">
  57. <antcall target="common.test.run" />
  58. </target>
  59. </project>