Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

build.xml 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0"?>
  2. <project name="vaadin-all" basedir="." default="publish-local" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:antcontrib="antlib:net.sf.antcontrib">
  3. <description>
  4. Compiles a zip containing all jars + dependencies
  5. </description>
  6. <include file="../common.xml" as="common" />
  7. <include file="../build.xml" as="vaadin" />
  8. <!-- global properties -->
  9. <property name="module.name" value="vaadin-all" />
  10. <property name="result.dir" value="result" />
  11. <property name="javadoc.jar" location="${result.dir}/lib/vaadin-all-${vaadin.version}-javadoc.jar" />
  12. <property name="temp.dir" location="${result.dir}/temp" />
  13. <property name="temp.deps.dir" value="${temp.dir}/lib" />
  14. <property name="javadoc.temp.dir" location="${result.dir}/javadoc-temp" />
  15. <property name="zip.file" location="${result.dir}/lib/${module.name}-${vaadin.version}.zip" />
  16. <path id="classpath.javadoc">
  17. <fileset dir="${temp.deps.dir}" includes="*.jar">
  18. </fileset>
  19. </path>
  20. <target name="fetch.module.and.dependencies">
  21. <fail unless="module" message="No 'module' parameter given" />
  22. <ivy:cachepath pathid="module.and.deps" inline="true" organisation="com.vaadin" module="vaadin-${module}" revision="${vaadin.version}" />
  23. <copy todir="${temp.dir}" flatten="true">
  24. <path refid="module.and.deps" />
  25. </copy>
  26. </target>
  27. <target name="unzip.to.javadoctemp">
  28. <property name="file" location="${temp.dir}/vaadin-${module}-${vaadin.version}.jar" />
  29. <unzip src="${file}" dest="${javadoc.temp.dir}" />
  30. </target>
  31. <target name="javadoc" depends="copy-jars">
  32. <!-- Unpack all source files to javadoc.temp.dir-->
  33. <antcontrib:foreach list="${modules.to.publish.to.maven}" target="unzip.to.javadoctemp" param="module" />
  34. <property name="javadoc.dir" location="${result.dir}/javadoc" />
  35. <property name="title" value="Vaadin" />
  36. <javadoc maxmemory="1024m" destdir="${javadoc.dir}" author="true" version="true" use="true" windowtitle="${title}" encoding="utf-8">
  37. <packageset dir="${javadoc.temp.dir}">
  38. <!-- TODO Javadoc throws ClassCastException if this is included (#9660)-->
  39. <exclude name="com/google/gwt/uibinder/elementparsers" />
  40. </packageset>
  41. <doctitle>&lt;h1>${title}&lt;/h1></doctitle>
  42. <!-- <header><![CDATA[<script type="text/javascript" src=".html-style/style.js"></script>]]></header> -->
  43. <bottom>${javadoc.bottom}</bottom>
  44. <link offline="true" href="http://docs.oracle.com/javase/6/docs/api/" packagelistLoc="build/javadoc/j2se-1.6.0" />
  45. <link offline="true" href="http://java.sun.com/j2ee/1.4/docs/api/" packagelistLoc="build/javadoc/j2ee-1.4" />
  46. <classpath refid="classpath.javadoc" />
  47. </javadoc>
  48. <!-- Create a javadoc jar -->
  49. <jar file="${javadoc.jar}" compress="true">
  50. <fileset dir="${javadoc.dir}" />
  51. <fileset refid="common.files.for.all.jars" />
  52. </jar>
  53. </target>
  54. <target name="copy-jars">
  55. <delete dir="${temp.dir}" />
  56. <antcontrib:foreach list="${modules.to.publish.to.maven}" target="fetch.module.and.dependencies" param="module" />
  57. <!-- All jars are now in temp.dir. Still need to separate vaadin and deps -->
  58. <move todir="${temp.deps.dir}">
  59. <fileset dir="${temp.dir}">
  60. <exclude name="vaadin-*-${vaadin.version}.*" />
  61. <exclude name="vaadin-*-${vaadin.version}-*.*" />
  62. </fileset>
  63. </move>
  64. </target>
  65. <target name="zip" depends="copy-jars, javadoc">
  66. <zip destfile="${zip.file}">
  67. <fileset dir="${temp.dir}">
  68. <!-- Avoid conflicts with servlet and portlet API. They are provided by the container -->
  69. <exclude name="**/servlet-api*" />
  70. <exclude name="**/portlet-api*" />
  71. <!-- Buildhelpers should not even get here ... -->
  72. <exclude name="*buildhelpers*" />
  73. <!-- Zip users should not need javadoc, sources or pom files -->
  74. <exclude name="*.pom" />
  75. <exclude name="*-javadoc.jar" />
  76. <exclude name="*-sources.jar" />
  77. </fileset>
  78. <fileset refid="common.files.for.all.jars" />
  79. <fileset dir="${result.dir}/..">
  80. <include name="README.TXT" />
  81. </fileset>
  82. <!-- Do not include javadoc jar in zip as it is huge (> 40MB) and most people do not need it. -->
  83. </zip>
  84. </target>
  85. <target name="publish-local" depends="zip">
  86. <antcall target="common.publish-local" />
  87. </target>
  88. <target name="clean">
  89. <antcall target="common.clean" />
  90. </target>
  91. <target name="checkstyle">
  92. <!-- Checkstyle is handled by all separate modules -->
  93. </target>
  94. <target name="tests" depends="checkstyle">
  95. <!-- No tests for this zip.. -->
  96. </target>
  97. </project>