customTargets.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <project name="Build specific targets and properties" default="noDefault">
  2. <!-- ===================================================================== -->
  3. <!-- Run a given ${target} on all elements being built -->
  4. <!-- Add on <ant> task for each top level element being built. -->
  5. <!-- ===================================================================== -->
  6. <available property="allElementsFile" file="${builder}/allElements.xml" value="${builder}/allElements.xml" />
  7. <property name="allElementsFile" location="${eclipse.pdebuild.templates}/headless-build/allElements.xml" />
  8. <import file="${allElementsFile}" />
  9. <target name="allElements">
  10. <antcall target="allElementsDelegator" />
  11. </target>
  12. <!-- ===================================================================== -->
  13. <!-- ===================================================================== -->
  14. <target name="getBaseComponents" unless="skipBase">
  15. </target>
  16. <!-- ===================================================================== -->
  17. <!-- Check out map files from correct repository -->
  18. <!-- Replace values for mapsCheckoutTag as desired. -->
  19. <!-- ===================================================================== -->
  20. <target name="getMapFiles" depends="checkLocalMaps">
  21. </target>
  22. <target name="checkLocalMaps">
  23. <available property="skipMaps" file="${buildDirectory}/maps" />
  24. </target>
  25. <!-- ===================================================================== -->
  26. <target name="clean" unless="noclean">
  27. <antcall target="allElements">
  28. <param name="target" value="cleanElement" />
  29. </antcall>
  30. </target>
  31. <target name="gatherLogs">
  32. <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
  33. <antcall target="allElements">
  34. <param name="target" value="gatherLogs" />
  35. </antcall>
  36. <unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
  37. <fileset dir="${buildDirectory}/features">
  38. <include name="**/*.log.zip" />
  39. </fileset>
  40. </unzip>
  41. </target>
  42. <!-- ===================================================================== -->
  43. <!-- Steps to do before setup -->
  44. <!-- ===================================================================== -->
  45. <target name="preSetup">
  46. </target>
  47. <!-- ===================================================================== -->
  48. <!-- Steps to do after setup but before starting the build proper -->
  49. <!-- ===================================================================== -->
  50. <target name="postSetup">
  51. <antcall target="getBaseComponents" />
  52. </target>
  53. <!-- ===================================================================== -->
  54. <!-- Steps to do before fetching the build elements -->
  55. <!-- ===================================================================== -->
  56. <target name="preFetch">
  57. </target>
  58. <!-- ===================================================================== -->
  59. <!-- Steps to do after fetching the build elements -->
  60. <!-- ===================================================================== -->
  61. <target name="postFetch">
  62. </target>
  63. <!-- ===================================================================== -->
  64. <!-- Steps to do before the repositories are being processed -->
  65. <!-- ===================================================================== -->
  66. <target name="preProcessRepos">
  67. <!-- xtext utils -->
  68. <p2.mirror source="https://builds.itemis.de/jenkins/job/XTEXT_UTILS/lastSuccessfulBuild/artifact/buildDirectory/build_local_repository/" destination="file:${repoBaseLocation}/xtext_utils_repository">
  69. <iu id="de.itemis.xtext.utils.jface.feature.group" />
  70. <iu id="de.itemis.xtext.utils.gmf.feature.group" />
  71. </p2.mirror>
  72. </target>
  73. <!-- ===================================================================== -->
  74. <!-- Steps to do after the repositories have been processed -->
  75. <!-- ===================================================================== -->
  76. <target name="postProcessRepos">
  77. </target>
  78. <!-- ===================================================================== -->
  79. <!-- Steps to do before generating the build scripts. -->
  80. <!-- ===================================================================== -->
  81. <target name="preGenerate">
  82. </target>
  83. <!-- ===================================================================== -->
  84. <!-- Steps to do after generating the build scripts. -->
  85. <!-- ===================================================================== -->
  86. <target name="postGenerate">
  87. <antcall target="clean" />
  88. </target>
  89. <!-- ===================================================================== -->
  90. <!-- Steps to do before running the build.xmls for the elements being built. -->
  91. <!-- ===================================================================== -->
  92. <target name="preProcess">
  93. </target>
  94. <!-- ===================================================================== -->
  95. <!-- Steps to do after running the build.xmls for the elements being built. -->
  96. <!-- ===================================================================== -->
  97. <target name="postProcess">
  98. </target>
  99. <!-- ===================================================================== -->
  100. <!-- Steps to do before running assemble. -->
  101. <!-- ===================================================================== -->
  102. <target name="preAssemble">
  103. </target>
  104. <!-- ===================================================================== -->
  105. <!-- Steps to do after running assemble. -->
  106. <!-- ===================================================================== -->
  107. <target name="postAssemble">
  108. </target>
  109. <!-- ===================================================================== -->
  110. <!-- Steps to do before running package. -->
  111. <!-- ===================================================================== -->
  112. <target name="prePackage">
  113. </target>
  114. <!-- ===================================================================== -->
  115. <!-- Steps to do after running package. -->
  116. <!-- ===================================================================== -->
  117. <target name="postPackage">
  118. </target>
  119. <!-- ===================================================================== -->
  120. <!-- Steps to do after the build is done. -->
  121. <!-- ===================================================================== -->
  122. <target name="postBuild">
  123. <antcall target="gatherLogs" />
  124. </target>
  125. <!-- ===================================================================== -->
  126. <!-- Steps to do to test the build results -->
  127. <!-- ===================================================================== -->
  128. <target name="test">
  129. </target>
  130. <!-- ===================================================================== -->
  131. <!-- Steps to do to publish the build results -->
  132. <!-- ===================================================================== -->
  133. <target name="publish">
  134. </target>
  135. <!-- ===================================================================== -->
  136. <!-- Default target -->
  137. <!-- ===================================================================== -->
  138. <target name="noDefault">
  139. <echo message="You must specify a target when invoking this file" />
  140. </target>
  141. </project>