ndai | 27b75e7 | 2004-08-17 08:16:27 +0000 | [diff] [blame] | 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 | <target name="allElements"> |
| 8 | <echo message="Target:${target} " /> |
| 9 | <echo message="basedir: ${basedir}"/> |
| 10 | <echo message="component: ${component}"/> |
| 11 | <echo message="buildDirectory: ${buildDirectory}"/> |
| 12 | <echo message="baseLocation: ${baseLocation}" /> |
| 13 | <ant antfile="${genericTargets}" target="${target}" > |
| 14 | <property name="type" value="feature" /> |
ndai | 22fce10 | 2004-10-13 18:18:31 +0000 | [diff] [blame] | 15 | <property name="id" value="org.eclipse.wst" /> |
ndai | 27b75e7 | 2004-08-17 08:16:27 +0000 | [diff] [blame] | 16 | </ant> |
| 17 | </target> |
| 18 | |
| 19 | <!-- ===================================================================== --> |
| 20 | <!-- Targets to assemble the built elements for particular configurations --> |
| 21 | <!-- These generally call the generated assemble scripts (named in --> |
| 22 | <!-- ${assembleScriptName}) but may also add pre and post processing --> |
| 23 | <!-- Add one target for each root element and each configuration --> |
| 24 | <!-- ===================================================================== --> |
| 25 | |
ndai | 22fce10 | 2004-10-13 18:18:31 +0000 | [diff] [blame] | 26 | <target name="assemble.org.eclipse.wst"> |
ndai | ff71c80 | 2004-08-17 10:16:21 +0000 | [diff] [blame] | 27 | <property name="archiveName" value="wtp-wst-${buildId}.zip"/> |
ndai | 27b75e7 | 2004-08-17 08:16:27 +0000 | [diff] [blame] | 28 | <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/> |
| 29 | </target> |
| 30 | |
| 31 | <!-- ===================================================================== --> |
| 32 | <!-- Check out map files from correct repository --> |
| 33 | <!-- Replace values for cvsRoot, package and mapVersionTag as desired. --> |
| 34 | <!-- ===================================================================== --> |
| 35 | <target name="checkLocal"> |
| 36 | <available property="mapsLocal" file="${buildDirectory}/maps" /> |
| 37 | </target> |
| 38 | <target name="getMapFiles" depends="checkLocal" unless="mapsLocal"> |
| 39 | |
| 40 | <!-- *** change the repo info --> |
| 41 | <property name="mapCvsRoot" value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" /> |
| 42 | <property name="mapVersionTag" value="HEAD" /> |
| 43 | <cvs cvsRoot="${mapCvsRoot}" |
| 44 | |
| 45 | package="org.eclipse.wtp.releng/maps" |
| 46 | dest="${buildDirectory}/maps" |
| 47 | tag="${mapVersionTag}" |
| 48 | /> |
| 49 | <!--tag the map files project--> |
| 50 | <antcall target="tagMapFiles" /> |
| 51 | </target> |
| 52 | |
| 53 | <target name="tagMapFiles" if="tagMaps"> |
| 54 | <cvs dest="${buildDirectory}/maps" command="tag v${timestamp}" /> |
| 55 | </target> |
| 56 | |
| 57 | |
| 58 | <!-- ===================================================================== --> |
| 59 | <!-- Steps to do before setup --> |
| 60 | <!-- ===================================================================== --> |
| 61 | <target name="preSetup"> |
| 62 | </target> |
| 63 | |
| 64 | <!-- ===================================================================== --> |
| 65 | <!-- Steps to do after setup but before starting the build proper --> |
| 66 | <!-- ===================================================================== --> |
| 67 | <target name="postSetup"> |
| 68 | </target> |
| 69 | |
| 70 | <!-- ===================================================================== --> |
| 71 | <!-- Steps to do before fetching the build elements --> |
| 72 | <!-- ===================================================================== --> |
| 73 | <target name="preFetch"> |
| 74 | </target> |
| 75 | |
| 76 | <!-- ===================================================================== --> |
| 77 | <!-- Steps to do after fetching the build elements --> |
| 78 | <!-- ===================================================================== --> |
| 79 | <target name="postFetch"> |
jeffliu | 60ed726 | 2005-04-13 21:21:54 +0000 | [diff] [blame] | 80 | <!-- |
csalter | 259d85c | 2004-12-21 00:11:39 +0000 | [diff] [blame] | 81 | <ant antfile="${relengDir}/fetchVendorContent.xml"> |
| 82 | <property name="basedir" value="${relengDir}"/> |
cbrealey | 4214153 | 2005-02-08 18:38:34 +0000 | [diff] [blame] | 83 | <property name="buildDirectory" value="${buildDirectory}/plugins"/> |
cbrealey | ad0dc77 | 2005-02-07 17:10:22 +0000 | [diff] [blame] | 84 | <property name="sdk" value="true"/> |
csalter | 259d85c | 2004-12-21 00:11:39 +0000 | [diff] [blame] | 85 | </ant> |
jeffliu | 60ed726 | 2005-04-13 21:21:54 +0000 | [diff] [blame] | 86 | --> |
ndai | 27b75e7 | 2004-08-17 08:16:27 +0000 | [diff] [blame] | 87 | </target> |
| 88 | |
| 89 | <!-- ===================================================================== --> |
| 90 | <!-- Steps to do before generating the build scripts. --> |
| 91 | <!-- ===================================================================== --> |
| 92 | <target name="preGenerate"> |
| 93 | </target> |
| 94 | |
| 95 | <!-- ===================================================================== --> |
| 96 | <!-- Steps to do after generating the build scripts. --> |
| 97 | <!-- ===================================================================== --> |
| 98 | <target name="postGenerate"> |
| 99 | </target> |
| 100 | |
| 101 | |
| 102 | <!-- ===================================================================== --> |
| 103 | <!-- Steps to do before running the build.xmls for the elements being built. --> |
| 104 | <!-- ===================================================================== --> |
| 105 | <target name="preProcess"> |
ndai | cc47279 | 2004-08-18 13:56:35 +0000 | [diff] [blame] | 106 | <replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@"> |
| 107 | <include name="**/about.mappings" /> |
| 108 | </replace> |
ndai | 27b75e7 | 2004-08-17 08:16:27 +0000 | [diff] [blame] | 109 | </target> |
| 110 | |
| 111 | <!-- ===================================================================== --> |
| 112 | <!-- Steps to do after running the build.xmls for the elements being built. --> |
| 113 | <!-- ===================================================================== --> |
| 114 | <target name="postProcess"> |
ndai | cc47279 | 2004-08-18 13:56:35 +0000 | [diff] [blame] | 115 | <condition property="logsAvailable"> |
| 116 | <istrue value="${javacVerbose}" /> |
| 117 | </condition> |
| 118 | <antcall target="gatherLogs" /> |
ndai | 27b75e7 | 2004-08-17 08:16:27 +0000 | [diff] [blame] | 119 | </target> |
| 120 | |
| 121 | |
| 122 | <!-- ===================================================================== --> |
| 123 | <!-- Steps to do before running assemble. --> |
| 124 | <!-- ===================================================================== --> |
| 125 | <target name="preAssemble"> |
cbrealey | aaf3163 | 2005-04-19 15:44:16 +0000 | [diff] [blame] | 126 | <ant antfile="${buildDirectory}/plugins/org.eclipse.wst.ws.explorer/build-war.xml"> |
| 127 | <property name="baseLocation" value="${baseLocation}"/> |
| 128 | <property name="basedir" value="${buildDirectory}/plugins/org.eclipse.wst.ws.explorer"/> |
| 129 | <property name="buildDirectory" value="${buildDirectory}"/> |
| 130 | </ant> |
| 131 | |
| 132 | <!-- |
| 133 | <ant antfile="${buildDirectory}/plugins/org.eclipse.wst.ws.explorer/build-war.xml"> |
| 134 | <property name="baseLocation" value="${baseLocation}"/> |
| 135 | <property name="buildDirectory" value="${buildDirectory}"/> |
| 136 | </ant> |
| 137 | --> |
jeffliu | 60ed726 | 2005-04-13 21:21:54 +0000 | [diff] [blame] | 138 | <!-- |
cbrealey | ad0dc77 | 2005-02-07 17:10:22 +0000 | [diff] [blame] | 139 | <ant antfile="${relengDir}/fetchVendorContent.xml" target="cleanup"> |
csalter | 259d85c | 2004-12-21 00:11:39 +0000 | [diff] [blame] | 140 | <property name="basedir" value="${relengDir}"/> |
cbrealey | 4214153 | 2005-02-08 18:38:34 +0000 | [diff] [blame] | 141 | <property name="buildDirectory" value="${buildDirectory}/plugins"/> |
cbrealey | ad0dc77 | 2005-02-07 17:10:22 +0000 | [diff] [blame] | 142 | <property name="sdk" value="true"/> |
csalter | 259d85c | 2004-12-21 00:11:39 +0000 | [diff] [blame] | 143 | </ant> |
jeffliu | 60ed726 | 2005-04-13 21:21:54 +0000 | [diff] [blame] | 144 | --> |
ndai | 27b75e7 | 2004-08-17 08:16:27 +0000 | [diff] [blame] | 145 | </target> |
| 146 | |
| 147 | <!-- ===================================================================== --> |
| 148 | <!-- Steps to do after running assemble. --> |
| 149 | <!-- ===================================================================== --> |
| 150 | <target name="postAssemble"> |
jeffliu | f32a851 | 2005-04-19 19:22:27 +0000 | [diff] [blame^] | 151 | <!-- |
csalter | 3ec2c7e | 2005-02-16 01:37:37 +0000 | [diff] [blame] | 152 | <ant antfile="${relengDir}/fetchVendorContent.xml"> |
| 153 | <property name="basedir" value="${relengDir}"/> |
| 154 | <property name="buildDirectory" value="${buildDirectory}/plugins"/> |
| 155 | <property name="sdk" value="true"/> |
| 156 | </ant> |
jeffliu | f32a851 | 2005-04-19 19:22:27 +0000 | [diff] [blame^] | 157 | --> |
ndai | 27b75e7 | 2004-08-17 08:16:27 +0000 | [diff] [blame] | 158 | </target> |
| 159 | |
| 160 | <!-- ===================================================================== --> |
| 161 | <!-- Steps to do after the build is done. --> |
| 162 | <!-- ===================================================================== --> |
| 163 | <target name="postBuild"> |
| 164 | </target> |
| 165 | |
| 166 | <!-- ===================================================================== --> |
| 167 | <!-- Steps to do to test the build results --> |
| 168 | <!-- ===================================================================== --> |
| 169 | <target name="test"> |
| 170 | </target> |
| 171 | |
| 172 | <!-- ===================================================================== --> |
| 173 | <!-- Steps to do to publish the build results --> |
| 174 | <!-- ===================================================================== --> |
| 175 | <target name="publish"> |
| 176 | </target> |
| 177 | |
ndai | cc47279 | 2004-08-18 13:56:35 +0000 | [diff] [blame] | 178 | |
| 179 | <!-- ===================================================================== --> |
| 180 | <!-- Helper targets --> |
| 181 | <!-- ===================================================================== --> |
| 182 | <target name="gatherLogs" if="logsAvailable"> |
| 183 | <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" /> |
| 184 | <antcall target="allElements"> |
| 185 | <param name="target" value="gatherLogs" /> |
| 186 | </antcall> |
| 187 | |
| 188 | <unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true"> |
ndai | 22fce10 | 2004-10-13 18:18:31 +0000 | [diff] [blame] | 189 | <fileset dir="${buildDirectory}/features/org.eclipse.wst"> |
ndai | cc47279 | 2004-08-18 13:56:35 +0000 | [diff] [blame] | 190 | <include name="*.log.zip" /> |
| 191 | </fileset> |
| 192 | </unzip> |
| 193 | </target> |
| 194 | |
| 195 | <target name="clean" unless="noclean"> |
| 196 | <antcall target="allElements"> |
| 197 | <param name="target" value="cleanElement" /> |
| 198 | </antcall> |
| 199 | </target> |
| 200 | |
ndai | 27b75e7 | 2004-08-17 08:16:27 +0000 | [diff] [blame] | 201 | <!-- ===================================================================== --> |
| 202 | <!-- Default target --> |
| 203 | <!-- ===================================================================== --> |
| 204 | <target name="noDefault"> |
| 205 | <echo message="You must specify a target when invoking this file" /> |
| 206 | </target> |
| 207 | |
| 208 | </project> |