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