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

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