customTargets.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <project name="customTargets.template" 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" depends="checkLocalBase" unless="skipBase">
  15. <get src="${eclipseBaseURL}" dest="${buildDirectory}/../temp-base.zip" />
  16. <unzip dest="${base}" overwrite="true" src="${buildDirectory}/../temp-base.zip" />
  17. </target>
  18. <target name="checkLocalBase">
  19. <available file="${base}" property="skipBase" />
  20. </target>
  21. <!-- ===================================================================== -->
  22. <!-- Check out map files from correct repository -->
  23. <!-- Replace values for mapsCheckoutTag as desired. -->
  24. <!-- ===================================================================== -->
  25. <target name="getMapFiles" depends="checkLocalMaps" unless="skipMaps">
  26. <property name="mapsCheckoutTag" value="HEAD" />
  27. <cvs cvsRoot="${mapsRepo}" package="${mapsRoot}" dest="${buildDirectory}/maps" tag="${mapsCheckoutTag}" />
  28. </target>
  29. <target name="checkLocalMaps">
  30. <available property="skipMaps" file="${buildDirectory}/maps" />
  31. </target>
  32. <target name="tagMapFiles" if="tagMaps">
  33. <cvs dest="${buildDirectory}/maps/${mapsRoot}" command="tag ${mapsTagTag}" />
  34. </target>
  35. <!-- ===================================================================== -->
  36. <target name="clean" unless="noclean">
  37. <antcall target="allElements">
  38. <param name="target" value="cleanElement" />
  39. </antcall>
  40. </target>
  41. <target name="gatherLogs">
  42. <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
  43. <antcall target="allElements">
  44. <param name="target" value="gatherLogs" />
  45. </antcall>
  46. <unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
  47. <fileset dir="${buildDirectory}/features">
  48. <include name="**/*.log.zip" />
  49. </fileset>
  50. </unzip>
  51. </target>
  52. <!-- ===================================================================== -->
  53. <!-- Steps to do before setup -->
  54. <!-- ===================================================================== -->
  55. <target name="preSetup">
  56. </target>
  57. <!-- ===================================================================== -->
  58. <!-- Steps to do after setup but before starting the build proper -->
  59. <!-- ===================================================================== -->
  60. <target name="postSetup">
  61. <antcall target="getBaseComponents" />
  62. </target>
  63. <!-- ===================================================================== -->
  64. <!-- Steps to do before fetching the build elements -->
  65. <!-- ===================================================================== -->
  66. <target name="preFetch">
  67. </target>
  68. <!-- ===================================================================== -->
  69. <!-- Steps to do after fetching the build elements -->
  70. <!-- ===================================================================== -->
  71. <target name="postFetch">
  72. </target>
  73. <!-- ===================================================================== -->
  74. <!-- Steps to do before the repositories are being processed -->
  75. <!-- ===================================================================== -->
  76. <target name="preProcessRepos">
  77. </target>
  78. <!-- ===================================================================== -->
  79. <!-- Steps to do after the repositories have been processed -->
  80. <!-- ===================================================================== -->
  81. <target name="postProcessRepos">
  82. </target>
  83. <!-- ===================================================================== -->
  84. <!-- Steps to do before generating the build scripts. -->
  85. <!-- ===================================================================== -->
  86. <target name="preGenerate">
  87. </target>
  88. <!-- ===================================================================== -->
  89. <!-- Steps to do after generating the build scripts. -->
  90. <!-- ===================================================================== -->
  91. <target name="postGenerate">
  92. <antcall target="clean" />
  93. </target>
  94. <!-- ===================================================================== -->
  95. <!-- Steps to do before running the build.xmls for the elements being built. -->
  96. <!-- ===================================================================== -->
  97. <target name="preProcess">
  98. </target>
  99. <!-- ===================================================================== -->
  100. <!-- Steps to do after running the build.xmls for the elements being built. -->
  101. <!-- ===================================================================== -->
  102. <target name="postProcess">
  103. </target>
  104. <!-- ===================================================================== -->
  105. <!-- Steps to do before running assemble. -->
  106. <!-- ===================================================================== -->
  107. <target name="preAssemble">
  108. </target>
  109. <!-- ===================================================================== -->
  110. <!-- Steps to do after running assemble. -->
  111. <!-- ===================================================================== -->
  112. <target name="postAssemble">
  113. </target>
  114. <!-- ===================================================================== -->
  115. <!-- Steps to do before running package. -->
  116. <!-- ===================================================================== -->
  117. <target name="prePackage">
  118. </target>
  119. <!-- ===================================================================== -->
  120. <!-- Steps to do after running package. -->
  121. <!-- ===================================================================== -->
  122. <target name="postPackage">
  123. </target>
  124. <!-- ===================================================================== -->
  125. <!-- Steps to do after the build is done. -->
  126. <!-- ===================================================================== -->
  127. <target name="postBuild">
  128. <antcall target="gatherLogs" />
  129. </target>
  130. <!-- ===================================================================== -->
  131. <!-- Steps to do to test the build results -->
  132. <!-- ===================================================================== -->
  133. <target name="test">
  134. </target>
  135. <!-- ===================================================================== -->
  136. <!-- Steps to do to publish the build results -->
  137. <!-- ===================================================================== -->
  138. <target name="publish">
  139. </target>
  140. <!-- ===================================================================== -->
  141. <!-- Default target -->
  142. <!-- ===================================================================== -->
  143. <target name="noDefault">
  144. <echo message="You must specify a target when invoking this file" />
  145. </target>
  146. </project>