1 <project name="Build specific targets and properties" default="noDefault"> 2 3 <!-- ===================================================================== --> 4 <!-- Run a given ${target} on all elements being built --> 5 <!-- Add on <ant> task for each top level element being built. --> 6 <!-- ===================================================================== --> 7 <available property="allElementsFile" file="${builder}/allElements.xml" value="${builder}/allElements.xml"/> 8 <property name="allElementsFile" location="${eclipse.pdebuild.templates}/headless-build/allElements.xml"/> 9 10 <import file="${allElementsFile}" /> 11 <target name="allElements"> 12 <antcall target="allElementsDelegator" /> 13 </target> 14 15 <!-- ===================================================================== --> 16 <!-- ===================================================================== --> 17 <target name="getBaseComponents" depends="checkLocalBase" unless="skipBase"> 18 <get src="${eclipseBaseURL}" dest="${buildDirectory}/../temp-base.zip" /> 19 <unzip dest="${base}" overwrite="true" src="${buildDirectory}/../temp-base.zip" /> 20 </target> 21 22 <target name="checkLocalBase"> 23 <available file="${base}" property="skipBase" /> 24 </target> 25 26 <!-- ===================================================================== --> 27 <!-- Check out map files from correct repository --> 28 <!-- Replace values for mapsCheckoutTag as desired. --> 29 <!-- ===================================================================== --> 30 <target name="getMapFiles" depends="checkLocalMaps" unless="skipMaps"> 31 <property name="mapsCheckoutTag" value="HEAD" /> 32 <cvs cvsRoot="${mapsRepo}" package="${mapsRoot}" dest="${buildDirectory}/maps" tag="${mapsCheckoutTag}" /> 33 </target> 34 35 <target name="checkLocalMaps"> 36 <available property="skipMaps" file="${buildDirectory}/maps" /> 37 </target> 38 39 <target name="tagMapFiles" if="tagMaps"> 40 <cvs dest="${buildDirectory}/maps/${mapsRoot}" command="tag ${mapsTagTag}" /> 41 </target> 42 43 <!-- ===================================================================== --> 44 45 <target name="clean" unless="noclean"> 46 <antcall target="allElements"> 47 <param name="target" value="cleanElement" /> 48 </antcall> 49 </target> 50 51 <target name="gatherLogs"> 52 <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" /> 53 <antcall target="allElements"> 54 <param name="target" value="gatherLogs" /> 55 </antcall> 56 <unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true"> 57 <fileset dir="${buildDirectory}/features"> 58 <include name="**/*.log.zip" /> 59 </fileset> 60 </unzip> 61 </target> 62 63 <!-- ===================================================================== --> 64 <!-- Steps to do before setup --> 65 <!-- ===================================================================== --> 66 <target name="preSetup"> 67 </target> 68 69 <!-- ===================================================================== --> 70 <!-- Steps to do after setup but before starting the build proper --> 71 <!-- ===================================================================== --> 72 <target name="postSetup"> 73 <antcall target="getBaseComponents" /> 74 </target> 75 76 <!-- ===================================================================== --> 77 <!-- Steps to do before fetching the build elements --> 78 <!-- ===================================================================== --> 79 <target name="preFetch"> 80 </target> 81 82 <!-- ===================================================================== --> 83 <!-- Steps to do after fetching the build elements --> 84 <!-- ===================================================================== --> 85 <target name="postFetch"> 86 </target> 87 88 <!-- ===================================================================== --> 89 <!-- Steps to do before the repositories are being processed --> 90 <!-- ===================================================================== --> 91 <target name="preProcessRepos"> 92 </target> 93 94 <!-- ===================================================================== --> 95 <!-- Steps to do after the repositories have been processed --> 96 <!-- ===================================================================== --> 97 <target name="postProcessRepos"> 98 </target> 99 100 <!-- ===================================================================== --> 101 <!-- Steps to do before generating the build scripts. --> 102 <!-- ===================================================================== --> 103 <target name="preGenerate"> 104 </target> 105 106 <!-- ===================================================================== --> 107 <!-- Steps to do after generating the build scripts. --> 108 <!-- ===================================================================== --> 109 <target name="postGenerate"> 110 <antcall target="clean" /> 111 </target> 112 113 <!-- ===================================================================== --> 114 <!-- Steps to do before running the build.xmls for the elements being built. --> 115 <!-- ===================================================================== --> 116 <target name="preProcess"> 117 </target> 118 119 <!-- ===================================================================== --> 120 <!-- Steps to do after running the build.xmls for the elements being built. --> 121 <!-- ===================================================================== --> 122 <target name="postProcess"> 123 </target> 124 125 <!-- ===================================================================== --> 126 <!-- Steps to do before running assemble. --> 127 <!-- ===================================================================== --> 128 <target name="preAssemble"> 129 </target> 130 131 <!-- ===================================================================== --> 132 <!-- Steps to do after running assemble. --> 133 <!-- ===================================================================== --> 134 <target name="postAssemble"> 135 </target> 136 137 <!-- ===================================================================== --> 138 <!-- Steps to do before running package. --> 139 <!-- ===================================================================== --> 140 <target name="prePackage"> 141 </target> 142 143 <!-- ===================================================================== --> 144 <!-- Steps to do after running package. --> 145 <!-- ===================================================================== --> 146 <target name="postPackage"> 147 </target> 148 149 <!-- ===================================================================== --> 150 <!-- Steps to do after the build is done. --> 151 <!-- ===================================================================== --> 152 <target name="postBuild"> 153 <antcall target="gatherLogs" /> 154 </target> 155 156 <!-- ===================================================================== --> 157 <!-- Steps to do to test the build results --> 158 <!-- ===================================================================== --> 159 <target name="test"> 160 </target> 161 162 <!-- ===================================================================== --> 163 <!-- Steps to do to publish the build results --> 164 <!-- ===================================================================== --> 165 <target name="publish"> 166 </target> 167 168 <!-- ===================================================================== --> 169 <!-- Default target --> 170 <!-- ===================================================================== --> 171 <target name="noDefault"> 172 <echo message="You must specify a target when invoking this file" /> 173 </target> 174 175 </project> 176