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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0"?>
  2. <project name="vaadin-client-compiler" basedir="." default="publish-local" xmlns:ivy="antlib:org.apache.ivy.ant">
  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-compiler" />
  12. <property name="module.symbolic" value="com.vaadin.client-compiler" />
  13. <property name="result.dir" value="result" />
  14. <path id="classpath.compile.custom">
  15. <fileset file="${gwt.dev.jar}" />
  16. </path>
  17. <path id="classpath.test.custom">
  18. <fileset dir="${result.dir}/classes">
  19. <include name="**/*" />
  20. </fileset>
  21. </path>
  22. <property name="extra.classes" value="**/*.properties" />
  23. <!-- don't try to copy the same files twice (first from classes and then
  24. from sources) in order for the build not to fail when packaging the
  25. JAR -->
  26. <property name="jar.exclude" value="**/*.properties" />
  27. <union id="compiler.includes">
  28. <union refid="client-compiler.gwt.includes" />
  29. <fileset dir="${result.dir}">
  30. <include name="com/google/gwt/dev/About.properties" />
  31. </fileset>
  32. </union>
  33. <target name="jar">
  34. <!-- Get Git revision -->
  35. <exec executable="git" outputproperty="git.revision" failifexecutionfails="false" errorproperty="">
  36. <arg value="describe" />
  37. <arg value="--tags" />
  38. <arg value="--always" />
  39. <arg value="HEAD" />
  40. </exec>
  41. <echo file="${result.dir}/com/google/gwt/dev/About.properties">gwt.version=${vaadin.version}
  42. gwt.svnrev=${git.revision}</echo>
  43. <antcall target="common.jar">
  44. <reference refid="compiler.includes" torefid="extra.jar.includes" />
  45. </antcall>
  46. </target>
  47. <target name="publish-local" depends="jar">
  48. <antcall target="common.sources.jar">
  49. <reference torefid="extra.jar.includes" refid="compiler.includes" />
  50. </antcall>
  51. <antcall target="common.javadoc.jar" />
  52. <antcall target="common.publish-local" />
  53. </target>
  54. <target name="clean">
  55. <antcall target="common.clean" />
  56. </target>
  57. <target name="checkstyle">
  58. <antcall target="common.checkstyle">
  59. <param name="cs.src" location="src" />
  60. </antcall>
  61. </target>
  62. <target name="test" depends="checkstyle">
  63. <antcall target="common.test.run" />
  64. <!--<echo>WHAT? No tests for ${module.name}!</echo>-->
  65. </target>
  66. </project>