david_williams | b1149ef | 2006-05-25 22:06:10 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 2 | <project |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 3 | name="buildutilities" |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 4 | default="nodefault" |
| 5 | basedir="."> |
david_williams | 072c6f7 | 2006-05-19 10:50:58 +0000 | [diff] [blame] | 6 | |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 7 | <!-- = = = standard properties pattern = = = --> |
| 8 | <!-- |
| 9 | Note to be cross-platform, "environment variables" are only |
| 10 | appropriate for some variables, e.g. ones we set, since |
| 11 | properties are case sensitive, even if the environment variables |
| 12 | on your operating system are not, e.g. it will be ${env.Path} |
| 13 | not ${env.PATH} on Windows |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 14 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 15 | <property |
| 16 | environment="env"/> |
| 17 | <!-- |
| 18 | Let users override standard properties, if desired. If |
| 19 | directory, file, or some properties do not exist, then standard |
| 20 | properties will be used. |
| 21 | --> |
| 22 | <property |
| 23 | file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties"/> |
david_williams | 67d2770 | 2006-11-20 16:36:52 +0000 | [diff] [blame] | 24 | |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 25 | <!-- = = = end standard properties pattern = = = --> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 26 | |
| 27 | |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 28 | <!-- if not otherwise set, use these default properties --> |
| 29 | <property |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 30 | name="debugOptimization" |
david_williams | ad3f6a0 | 2009-05-03 22:45:55 +0000 | [diff] [blame] | 31 | value="false"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 32 | <!-- |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 33 | We should not always normalize ("-repack") jars by default, |
| 34 | since in production we sign the jars (which does the -repack for |
| 35 | us) and not in production we don't really care so why spend the |
| 36 | extra time. For jars which are not supposed to be normalized, |
| 37 | such as pre-existing jars, they need to be added to the |
| 38 | pack.properties file (see the updatePackProperties task). Note: |
| 39 | signing does the -repack when we sign. This can be over-ridden |
| 40 | by the caller setting normalize to true, but there are know |
| 41 | known cases where we want to normalize (and eventually pack) the |
| 42 | jar files but not sign them. |
david_williams | c11999c | 2008-02-19 02:02:32 +0000 | [diff] [blame] | 43 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 44 | <property |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 45 | name="normalizeJarFiles" |
david_williams | ad3f6a0 | 2009-05-03 22:45:55 +0000 | [diff] [blame] | 46 | value="false"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 47 | <!-- |
| 48 | we'll currently pack jar files, just as part of "debugging" to |
| 49 | help sanity check all is working as expected. Eventually we may |
| 50 | want to provide some service there jar files in the bundles |
| 51 | directory are packed ... but, there's no known use-case for this |
| 52 | so far |
david_williams | c11999c | 2008-02-19 02:02:32 +0000 | [diff] [blame] | 53 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 54 | <property |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 55 | name="packJarFiles" |
david_williams | ad3f6a0 | 2009-05-03 22:45:55 +0000 | [diff] [blame] | 56 | value="false"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 57 | <!-- |
| 58 | Let tmp site be global. Note: we use this odd |
| 59 | "tmpsite-archiveName-temp" to make sure unique directories, |
| 60 | since in some cases these directories can not be deleted from |
| 61 | ant, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=142926, |
| 62 | and since directory names ending in .zip are misinterpreted by |
| 63 | jarProcessor, see |
| 64 | https://bugs.eclipse.org/bugs/show_bug.cgi?id=143385 But, its |
| 65 | handy to do as unique directories anyway, since if a larger |
| 66 | process calls this mulitiple times, on different zips, and if |
| 67 | debugging is turnned on, then all the tmpsite directories are |
| 68 | left on disk for post-build inspection. |
david_williams | b8ba26a | 2006-11-28 08:31:31 +0000 | [diff] [blame] | 69 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 70 | <property |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 71 | name="tmpsite" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 72 | value="${buildDirectory}/tmpsite-${archiveName}-temp"/> |
| 73 | <!-- |
| 74 | ================================================================================== |
| 75 | Primary Task: unpackUpdateJarsAndCreateZippedPackages This task |
| 76 | takes a zip file of update jars, which is created by PDE build |
| 77 | process, and "converts" it to a traditional zip file, processing |
| 78 | the jars with pack200 for better compression on update sites. |
| 79 | ================================================================================== |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 80 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 81 | <target |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 82 | name="unpackUpdateJarsAndCreateZippedPackages" |
| 83 | depends="init"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 84 | <!-- |
| 85 | ================================================================================== |
| 86 | 1. make "backup" copy of original zip, if debugging, since |
| 87 | might be needed for comparison |
| 88 | ================================================================================== |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 89 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 90 | <antcall |
| 91 | target="makeBackupCopyForDebugging"/> |
| 92 | <!-- |
| 93 | add pack.properties file that specifies effort level, and |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 94 | files not to sign We don't have to do this if not |
| 95 | normalizing and not signing |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 96 | --> |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 97 | <antcall |
| 98 | target="updatePackPropertiesFile"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 99 | <!-- |
| 100 | ================================================================================== |
| 101 | 2. normalize jars here, from a zip file of update jars. The |
| 102 | normalized jars are put in zip file of same name, in a |
| 103 | directory named normalized |
| 104 | ================================================================================== |
| 105 | --> |
| 106 | <echo |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 107 | level="info" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 108 | message="normalize jars if desired ..."/> |
| 109 | <antcall |
| 110 | target="normalizeJarFiles"/> |
| 111 | <echo |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 112 | level="info" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 113 | message="normalized jars: ${normalizeJarFiles}"/> |
| 114 | <!-- |
| 115 | ================================================================================== |
| 116 | 3. sign the jars in archive file, if desired |
| 117 | ================================================================================== |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 118 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 119 | <ant |
| 120 | antfile="${wtp.builder.home}/scripts/build/signjars.xml"/> |
| 121 | <!-- |
| 122 | ================================================================================== |
| 123 | 4. unzip the normalized jars in the zip file produced in |
| 124 | step 1., to the directory {tmpsite} for further processing. |
| 125 | plugins and features end up in {tmpsite}/eclipse |
| 126 | ================================================================================== |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 127 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 128 | <echo |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 129 | level="info" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 130 | message="unzip normalized update jars to a holding place"/> |
| 131 | <echo |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 132 | level="info" |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 133 | message="tmpsite: ${tmpsite}"/> |
| 134 | <echo |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 135 | level="info" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 136 | message="archiveDir: ${archiveDir}"/> |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 137 | <echo |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 138 | level="info" |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 139 | message="archiveName: ${archiveName}"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 140 | <unzip |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 141 | dest="${tmpsite}" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 142 | src="${archiveDir}/${archiveName}"/> |
| 143 | <!-- |
| 144 | ================================================================================== |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 145 | 5. copy all update jars to a common update site directory, |
| 146 | if desired. Note: overwite is false to avoid "touching" |
| 147 | files already produced and processed by previous steps in a |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 148 | larger build process. This means the repository *must* be |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 149 | completely clean before the larger process starts. |
| 150 | ================================================================================== |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 151 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 152 | <antcall |
| 153 | target="makeCopyForUpdate"/> |
| 154 | <!-- |
| 155 | ================================================================================== |
| 156 | 6. for modularity, pack200 is done here, optionally. The |
| 157 | resulting gz files are produced in update site directory. |
| 158 | This is optional since processing is expensive to do for |
| 159 | every build. Only need when ready to declare an update site, |
| 160 | and, for exmaple, no need to do for "local" or HEAD builds |
| 161 | since developers wouldn't normally need it for a quick check |
| 162 | of a build. |
| 163 | ================================================================================== |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 164 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 165 | <echo |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 166 | level="info" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 167 | message="create pack files if desired ..."/> |
| 168 | <antcall |
| 169 | target="createPackFilesIfDesired"/> |
| 170 | <echo |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 171 | level="info" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 172 | message="created pack files: ${packJarFiles}"/> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 173 | <!-- |
| 174 | 7. create a site.xml file, by merging a template site.xml |
| 175 | with the feature versions produced by PDE build |
| 176 | --> |
| 177 | <antcall |
| 178 | target="createSiteFiles"/> |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 179 | |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 180 | <!-- 8. now generate P2 meta data for that P2 repo --> |
david_williams | 9ff5ae5 | 2009-03-10 03:58:36 +0000 | [diff] [blame] | 181 | <echo |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 182 | level="info" |
david_williams | 9ff5ae5 | 2009-03-10 03:58:36 +0000 | [diff] [blame] | 183 | message="Generating p2 metadata for P2 repo."/> |
| 184 | <antcall |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 185 | target="generateP2Metadata"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 186 | <!-- |
| 187 | ================================================================================== |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 188 | 9. now create traditional zip file of unpacked jars. This |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 189 | type of "unpack" is not related to pack200, but instead |
| 190 | means to unpack those jars that are supposed to be unpacked |
| 191 | based on feature defintion, if the plugin's unpack attribute |
| 192 | is set to true in the feature |
| 193 | ================================================================================== |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 194 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 195 | <!-- use releng task of unpackUpdateJars --> |
| 196 | <unpackUpdateJars |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 197 | site="${tmpsite}/eclipse" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 198 | output="${tmpsite}/unpacked/eclipse"/> |
| 199 | <!-- |
| 200 | add copy of legal doc's here, product.ini, etc., before |
| 201 | re-zipping |
| 202 | --> |
| 203 | <copy |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 204 | todir="${tmpsite}/unpacked/eclipse" |
| 205 | overwrite="false"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 206 | <fileset |
david_williams | 99e68f2 | 2009-02-10 00:51:12 +0000 | [diff] [blame] | 207 | dir="${wtp.builder.home}/rootfiles"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 208 | </fileset> |
| 209 | </copy> |
| 210 | <!-- |
| 211 | delete the zip file of update jars we started with, which we |
| 212 | are about to re-create as traditional zip file |
david_williams | 3591569 | 2007-10-05 06:18:08 +0000 | [diff] [blame] | 213 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 214 | <delete |
| 215 | file="${buildDirectory}/${buildLabel}/${archiveName}"/> |
| 216 | <mkdir |
| 217 | dir="${buildDirectory}/${buildLabel}"/> |
| 218 | <!-- |
| 219 | recreate zip file now, same name, traditional content, which |
| 220 | is mix of folders and jars |
| 221 | --> |
david_williams | 8f336ec | 2010-04-03 05:06:07 +0000 | [diff] [blame] | 222 | <!-- |
| 223 | explicitly exclude any features with assembly anywhere in |
| 224 | directory names, as these are just for controlling what's |
| 225 | built, and are not intended for delivery |
| 226 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 227 | <zip |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 228 | destfile="${buildDirectory}/${buildLabel}/${archiveName}" |
| 229 | basedir="${tmpsite}/unpacked" |
| 230 | update="false" |
david_williams | 8f336ec | 2010-04-03 05:06:07 +0000 | [diff] [blame] | 231 | duplicate="preserve" |
| 232 | excludes="**/*assembly*/**"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 233 | <!-- always produce checksum files for any zips produced --> |
| 234 | <antcall |
| 235 | target="createChecksums"/> |
| 236 | <!-- |
| 237 | ================================================================================== |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 238 | 10. can now remove tmpsite as no longer needed, unless |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 239 | debugging |
| 240 | ================================================================================== |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 241 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 242 | <antcall |
| 243 | target="deleteTmpSite"/> |
| 244 | </target> |
| 245 | <!-- |
| 246 | ============================================================================================== |
| 247 | Utility and Helper tasks |
| 248 | ============================================================================================== |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 249 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 250 | <target |
| 251 | name="init" |
david_williams | fb048be | 2008-02-23 07:15:21 +0000 | [diff] [blame] | 252 | depends="check.sign"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 253 | <condition |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 254 | property="verboseIfDebug" |
| 255 | value="-verbose" |
| 256 | else=""> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 257 | <istrue |
| 258 | value="${debugOptimization}"/> |
| 259 | </condition> |
| 260 | <condition |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 261 | property="logIfDebug" |
| 262 | value="-debug -consolelog" |
| 263 | else=""> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 264 | <istrue |
| 265 | value="${debugOptimization}"/> |
| 266 | </condition> |
| 267 | <condition |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 268 | property="keepIfDebug" |
| 269 | value="true"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 270 | <istrue |
| 271 | value="${debugOptimization}"/> |
| 272 | </condition> |
| 273 | <!-- don't normalize if signing, since then it's done by signing --> |
| 274 | <condition |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 275 | property="doNormalize" |
| 276 | value="true"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 277 | <and> |
| 278 | <istrue |
| 279 | value="${normalizeJarFiles}"/> |
| 280 | <not> |
| 281 | <equals |
| 282 | arg1="${doSign}" |
| 283 | arg2="true" |
| 284 | trim="true" |
| 285 | casesensitive="false"/> |
| 286 | </not> |
| 287 | </and> |
| 288 | </condition> |
| 289 | <condition |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 290 | property="doPack" |
| 291 | value="true"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 292 | <and> |
| 293 | <istrue |
| 294 | value="${packJarFiles}"/> |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 295 | <istrue |
| 296 | value="${createP2repo}"/> |
| 297 | <and> |
| 298 | <or> |
| 299 | <istrue |
| 300 | value="${normalizeJarFiles}"/> |
| 301 | <istrue |
| 302 | value="${doSign}"/> |
| 303 | </or> |
| 304 | </and> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 305 | </and> |
| 306 | </condition> |
| 307 | <condition |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 308 | property="excludeFromRepoZip" |
| 309 | value="site.xml"> |
| 310 | <isfalse |
| 311 | value="${doPack}"/> |
| 312 | </condition> |
| 313 | <condition |
| 314 | property="excludeFromRepoZip" |
| 315 | value="site.xml,plugins/*.jar,features/*.jar"> |
| 316 | <istrue |
| 317 | value="${doPack}"/> |
| 318 | </condition> |
| 319 | <condition |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 320 | property="archiveDir" |
| 321 | value="${tmpsite}/normalized"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 322 | <istrue |
| 323 | value="${doPack}"/> |
| 324 | </condition> |
| 325 | <condition |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 326 | property="archiveDir" |
| 327 | value="${buildDirectory}/${buildLabel}"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 328 | <isfalse |
| 329 | value="${doPack}"/> |
| 330 | </condition> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 331 | <condition |
| 332 | property="doP2Repo" |
| 333 | value="true"> |
| 334 | <available |
| 335 | file="${buildDirectory}/maps/webtools.maps/releng/sitefile/site.xml"/> |
| 336 | </condition> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 337 | <!-- echo important values, so it's documneted in build logs --> |
| 338 | <echo |
| 339 | message="doPack: ${doPack}"/> |
| 340 | <echo |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 341 | message="packJarFiles: ${packJarFiles}"/> |
| 342 | <echo |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 343 | message="normalizeJarFiles: ${normalizeJarFiles}"/> |
| 344 | <echo |
| 345 | message="doSign: ${doSign}"/> |
| 346 | <echo |
| 347 | message="doNormalize: ${doNormalize}"/> |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 348 | <echo |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 349 | message="doP2Repo: ${doP2Repo}"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 350 | </target> |
| 351 | <target |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 352 | name="deleteTmpSite" |
| 353 | unless="keepIfDebug"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 354 | <delete |
| 355 | dir="${tmpsite}"/> |
| 356 | </target> |
| 357 | <target |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 358 | name="normalizeJarFiles" |
| 359 | if="doNormalize" |
| 360 | depends="init"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 361 | <!-- |
| 362 | stick with JAVA5 for signing/packing for now ... I've heard |
| 363 | rumors of some 'compatibility' issues with JAVA6? |
| 364 | --> |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 365 | <echo |
| 366 | message="Starting normalizeJarFiles"/> |
| 367 | <echo |
| 368 | message="archiveDir: ${archiveDir}"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 369 | <java |
david_williams | 54315a7 | 2007-02-14 22:50:44 +0000 | [diff] [blame] | 370 | jar="${eclipse.launcher}" |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 371 | fork="true" |
| 372 | jvm="${env.JAVA_5_HOME}/bin/java" |
| 373 | failonerror="true" |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 374 | maxmemory="512m" |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 375 | dir="${buildDirectory}"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 376 | <jvmarg |
| 377 | value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/> |
| 378 | <arg |
| 379 | line="${logIfDebug}"/> |
| 380 | <arg |
| 381 | line="-application org.eclipse.update.core.siteOptimizer"/> |
| 382 | <!-- |
| 383 | note: this -processAll option is critical in this first |
| 384 | step. For various reasons, jarProcessor is written to |
| 385 | not act on any jar if the jar is not "marked", or if not |
| 386 | told explicitly to to processAll. There are ways where |
| 387 | not all are literally processed, such as using |
| 388 | pack.properties (and others, see |
david_williams | 334ae2c | 2009-08-14 21:12:45 +0000 | [diff] [blame] | 389 | http://wiki.eclipse.org/JarProcessor_Options). |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 390 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 391 | <arg |
| 392 | line="-jarProcessor ${verboseIfDebug} -processAll -outputDir ${archiveDir} -repack ${buildDirectory}/${buildLabel}/${archiveName}"/> |
| 393 | </java> |
| 394 | </target> |
| 395 | <target |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 396 | name="createPackFilesIfDesired" |
| 397 | if="doPack" |
| 398 | depends="init"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 399 | <!-- |
| 400 | stick with JAVA5 for signing/packing for now ... I've heard |
| 401 | rumors of some 'compatibility' issues with JAVA6? |
| 402 | --> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 403 | <!-- |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 404 | <java |
david_williams | 54315a7 | 2007-02-14 22:50:44 +0000 | [diff] [blame] | 405 | jar="${pde.builder.path}/plugins/org.eclipse.equinox.launcher.jar" |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 406 | fork="true" jvm="${env.JAVA_5_HOME}/bin/java" |
| 407 | failonerror="true" maxmemory="512m" dir="${buildDirectory}"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 408 | <jvmarg |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 409 | value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/> <arg |
| 410 | line="${logIfDebug}"/> <arg line="-application |
| 411 | org.eclipse.update.core.siteOptimizer"/> <arg |
| 412 | line="-jarProcessor ${verboseIfDebug} -outputDir |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 413 | ${buildDirectory}/${buildLabel}/repository -pack |
| 414 | ${buildDirectory}/${buildLabel}/repository"/> </java> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 415 | --> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 416 | <java |
| 417 | jar="${pde.builder.path}/plugins/org.eclipse.equinox.launcher.jar" |
| 418 | fork="true" |
| 419 | jvm="${env.JAVA_5_HOME}/bin/java" |
| 420 | failonerror="true" |
| 421 | maxmemory="512m" |
| 422 | dir="${buildDirectory}"> |
| 423 | <jvmarg |
| 424 | value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/> |
| 425 | <arg |
| 426 | line="${logIfDebug}"/> |
| 427 | <arg |
| 428 | line="-application org.eclipse.update.core.siteOptimizer"/> |
| 429 | <arg |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 430 | line="-jarProcessor ${verboseIfDebug} -outputDir ${buildDirectory}/${buildLabel}/${component}/repository -pack ${buildDirectory}/${buildLabel}/${component}/repository"/> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 431 | </java> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 432 | </target> |
| 433 | <!-- |
| 434 | always make copy, since normally either normalized, or signed |
| 435 | (and normalized) TODO: (minor) tiny improvement in efficiency |
| 436 | could be made, for N-builds?, that are neither normalized nor |
| 437 | signed. |
| 438 | --> |
| 439 | <target |
david_williams | 504570c | 2008-03-05 06:03:14 +0000 | [diff] [blame] | 440 | name="makeCopyForUpdate"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 441 | <mkdir |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 442 | dir="${buildDirectory}/${buildLabel}/repository"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 443 | <copy |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 444 | todir="${buildDirectory}/${buildLabel}/repository" |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 445 | overwrite="false"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 446 | <fileset |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 447 | dir="${tmpsite}/eclipse"> |
david_williams | 8f336ec | 2010-04-03 05:06:07 +0000 | [diff] [blame] | 448 | <exclude |
| 449 | name="**/*assembly*/**"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 450 | </fileset> |
| 451 | </copy> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 452 | <mkdir |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 453 | dir="${buildDirectory}/${buildLabel}/${component}/repository"/> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 454 | <copy |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 455 | todir="${buildDirectory}/${buildLabel}/${component}/repository" |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 456 | overwrite="false"> |
| 457 | <fileset |
| 458 | dir="${tmpsite}/eclipse"> |
david_williams | 8f336ec | 2010-04-03 05:06:07 +0000 | [diff] [blame] | 459 | <exclude |
| 460 | name="**/*assembly*/**"/> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 461 | </fileset> |
| 462 | </copy> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 463 | </target> |
| 464 | <target |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 465 | name="makeBackupCopyForDebugging" |
| 466 | if="keepIfDebug"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 467 | <!-- |
| 468 | temporary copy while confirming build to be able to do |
| 469 | side-by-side comparisons |
david_williams | b1149ef | 2006-05-25 22:06:10 +0000 | [diff] [blame] | 470 | --> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 471 | <mkdir |
| 472 | dir="${buildDirectory}/backuporiginalzips"/> |
| 473 | <copy |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 474 | file="${buildDirectory}/${buildLabel}/${archiveName}" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 475 | todir="${buildDirectory}/backuporiginalzips"/> |
| 476 | </target> |
| 477 | <target |
| 478 | name="createChecksums"> |
| 479 | <!-- |
| 480 | This createChecksums task creates two files, for use in two |
| 481 | contexts. a. an x.md5 file, that has the name of the file in |
| 482 | the contents. This is good for some "third party" |
| 483 | executables, like md5summ, that expects the name in the |
| 484 | file. b. since ant does not deal well with md5 files with |
| 485 | anything in them other than the checksum, we provide same |
| 486 | thing in a file with an md5antformat extension, that has |
| 487 | only the checksum. |
| 488 | --> |
| 489 | <mkdir |
| 490 | dir="${buildDirectory}/${buildLabel}/checksum"/> |
| 491 | <checksum |
| 492 | file="${buildDirectory}/${buildLabel}/${archiveName}" |
| 493 | property="md5"/> |
| 494 | <echo |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 495 | message="${md5} *${archiveName}" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 496 | file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5"/> |
| 497 | <echo |
david_williams | d957bc3 | 2006-11-20 00:07:15 +0000 | [diff] [blame] | 498 | message="${md5}" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 499 | file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5antformat"/> |
| 500 | </target> |
| 501 | <target |
david_williams | fb048be | 2008-02-23 07:15:21 +0000 | [diff] [blame] | 502 | name="check.sign"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 503 | <echo |
| 504 | message="sign: ${sign}"/> |
| 505 | <echo |
| 506 | message="env skip jar signing: ${env.SKIP_JAR_SIGNING}"/> |
| 507 | <echo |
| 508 | message="skip jar signing: ${SKIP_JAR_SIGNING}"/> |
| 509 | <condition |
david_williams | fb048be | 2008-02-23 07:15:21 +0000 | [diff] [blame] | 510 | property="doSign"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 511 | <and> |
| 512 | <equals |
david_williams | fb048be | 2008-02-23 07:15:21 +0000 | [diff] [blame] | 513 | arg1="${sign}" |
| 514 | arg2="true" |
| 515 | trim="true" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 516 | casesensitive="false"/> |
| 517 | <not> |
| 518 | <equals |
| 519 | arg1="${env.SKIP_JAR_SIGNING}" |
| 520 | arg2="true" |
| 521 | trim="true" |
| 522 | casesensitive="false"/> |
| 523 | </not> |
| 524 | <not> |
| 525 | <equals |
| 526 | arg1="${SKIP_JAR_SIGNING}" |
| 527 | arg2="true" |
| 528 | trim="true" |
| 529 | casesensitive="false"/> |
| 530 | </not> |
| 531 | </and> |
| 532 | </condition> |
| 533 | <echo |
| 534 | message="doSign: ${doSign}"/> |
| 535 | </target> |
| 536 | |
| 537 | <!-- Call the p2 metadata generator on the update site. --> |
| 538 | <!-- TODO: do we need to pack200 files first? (create gz files?) --> |
| 539 | <target |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 540 | name="generateP2Metadata" |
| 541 | depends="init" |
| 542 | if="doP2Repo"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 543 | |
david_williams | 15815ba | 2009-03-17 06:02:20 +0000 | [diff] [blame] | 544 | |
| 545 | <!-- 1. Generate the P2 metadata --> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 546 | <!-- |
david_williams | 8f336ec | 2010-04-03 05:06:07 +0000 | [diff] [blame] | 547 | ant version <p2.generator |
| 548 | updateSite="${buildDirectory}/${buildLabel}/${component}/repository" |
| 549 | compress="true" |
| 550 | metadataRepository="file:${buildDirectory}/${buildLabel}/${component}/repository" |
| 551 | artifactRepository="file:${buildDirectory}/${buildLabel}/${component}/repository" |
| 552 | metadataRepositoryName="Web Tools Platform Repository" |
| 553 | artifactRepositoryName="Web Tools Platform Repository" |
| 554 | noDefaultIUs="true"/> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 555 | --> |
| 556 | <!-- |
david_williams | 8f336ec | 2010-04-03 05:06:07 +0000 | [diff] [blame] | 557 | java invocation version (Orbit had trouble running ant |
| 558 | version, so used direct java call |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 559 | --> |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 560 | <!-- |
david_williams | 8f336ec | 2010-04-03 05:06:07 +0000 | [diff] [blame] | 561 | these shouldn't exist ... but, just in case something |
| 562 | changes in future we'll be sure |
| 563 | --> |
| 564 | <delete |
| 565 | quiet="true" |
| 566 | file="${buildDirectory}/${buildLabel}/${component}/repository/artifacts.jar"/> |
| 567 | <delete |
| 568 | quiet="true" |
| 569 | file="${buildDirectory}/${buildLabel}/${component}/repository/content.jar"/> |
| 570 | <java |
| 571 | jar="${eclipse.launcher}" |
| 572 | fork="true" |
| 573 | jvm="${env.JAVA_5_HOME}/bin/java" |
| 574 | failonerror="true" |
| 575 | maxmemory="512m" |
| 576 | dir="${buildDirectory}"> |
| 577 | <jvmarg |
| 578 | value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/> |
| 579 | <arg |
| 580 | line="-application org.eclipse.equinox.p2.metadata.generator.EclipseGenerator"/> |
| 581 | <arg |
| 582 | line="-consoleLog"/> |
| 583 | <arg |
| 584 | line="-nosplash"/> |
| 585 | <arg |
| 586 | line="--launcher.suppressErrors"/> |
| 587 | <arg |
| 588 | line="-metadataRepository file:${buildDirectory}/${buildLabel}/${component}/repository"/> |
| 589 | <arg |
| 590 | line="-artifactRepository file:${buildDirectory}/${buildLabel}/${component}/repository"/> |
| 591 | <arg |
| 592 | line="-metadataRepositoryName Web-Tools-Platform-${buildLabel}"/> |
| 593 | <arg |
| 594 | line="-artifactRepositoryName Web-Tools-Platform-${buildLabel}"/> |
| 595 | <arg |
| 596 | line="-updateSite ${buildDirectory}/${buildLabel}/${component}/repository"/> |
| 597 | <arg |
| 598 | line="-reusePack200Files"/> |
| 599 | <arg |
| 600 | line="-compress"/> |
| 601 | <arg |
| 602 | line="-noDefaultIUs"/> |
| 603 | <arg |
| 604 | line="-site file:${buildDirectory}/${buildLabel}/${component}/repository/site.xml"/> |
| 605 | </java> |
| 606 | <delete |
| 607 | quiet="true" |
| 608 | file="${buildDirectory}/${buildLabel}/repository/artifacts.jar"/> |
| 609 | <delete |
| 610 | quiet="true" |
| 611 | file="${buildDirectory}/${buildLabel}/repository/content.jar"/> |
| 612 | <java |
| 613 | jar="${eclipse.launcher}" |
| 614 | fork="true" |
| 615 | jvm="${env.JAVA_5_HOME}/bin/java" |
| 616 | failonerror="true" |
| 617 | maxmemory="512m" |
| 618 | dir="${buildDirectory}"> |
| 619 | <jvmarg |
| 620 | value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/> |
| 621 | <arg |
| 622 | line="-application org.eclipse.equinox.p2.metadata.generator.EclipseGenerator"/> |
| 623 | <arg |
| 624 | line="-consoleLog"/> |
| 625 | <arg |
| 626 | line="-nosplash"/> |
| 627 | <arg |
| 628 | line="--launcher.suppressErrors"/> |
| 629 | <arg |
| 630 | line="-metadataRepository file:${buildDirectory}/${buildLabel}/repository"/> |
| 631 | <arg |
| 632 | line="-artifactRepository file:${buildDirectory}/${buildLabel}/repository"/> |
| 633 | <arg |
| 634 | line="-metadataRepositoryName Web-Tools-Platform-${buildLabel}"/> |
| 635 | <arg |
| 636 | line="-artifactRepositoryName Web-Tools-Platform-${buildLabel}"/> |
| 637 | <arg |
| 638 | line="-updateSite ${buildDirectory}/${buildLabel}/repository"/> |
| 639 | <arg |
| 640 | line="-reusePack200Files"/> |
| 641 | <arg |
| 642 | line="-compress"/> |
| 643 | <arg |
| 644 | line="-noDefaultIUs"/> |
| 645 | <arg |
| 646 | line="-site file:${buildDirectory}/${buildLabel}/repository/site.xml"/> |
| 647 | </java> |
| 648 | <!-- |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 649 | 2. Create zip of P2 repo. Note we put it in |
| 650 | 'repoBaseLocation' for use by subsequent build steps TODO: |
| 651 | investigate a location outside a per-build location |
| 652 | --> |
| 653 | <mkdir |
| 654 | dir="${buildDirectory}/${buildLabel}/repos"/> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 655 | <zip |
| 656 | destfile="${buildDirectory}/${buildLabel}/repos/${component}-buildrepo-${buildLabel}.zip" |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 657 | basedir="${buildDirectory}/${buildLabel}/${component}/repository/" |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 658 | excludes="${excludeFromRepoZip}" |
| 659 | update="yes" |
| 660 | duplicate="preserve"> |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 661 | </zip> |
| 662 | <!-- |
| 663 | <zip |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 664 | destfile="${buildDirectory}/${buildLabel}/repos/${build.distribution}-buildrepo-${buildLabel}.zip" |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 665 | basedir="${buildDirectory}/${buildLabel}/repository/" |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 666 | excludes="${excludeFromRepoZip}" update="yes" |
| 667 | duplicate="preserve"> </zip> |
| 668 | --> |
| 669 | <!-- |
| 670 | 3. generate maps each step TODO: avoid double processing by |
| 671 | changing task so that if file exists, append to it |
| 672 | --> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 673 | <generateMapFiles |
| 674 | buildlabel="${buildLabel}" |
| 675 | inputFilePluginVersions="${buildDirectory}/finalPluginsVersions.properties" |
| 676 | inputFileFeatureVersions="${buildDirectory}/finalFeaturesVersions.properties" |
| 677 | p2MapFile="${buildDirectory}/${buildLabel}/Web-Tools-Platform-${buildLabel}.p2.map" |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 678 | p2Repository="http://build.eclipse.org/webtools/committers/${projectname}/${buildLabel}/repository"/> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 679 | </target> |
| 680 | <target |
| 681 | name="createSiteFiles" |
david_williams | 99daef1 | 2009-04-07 01:29:45 +0000 | [diff] [blame] | 682 | depends="init" |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 683 | if="doP2Repo"> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 684 | <property |
| 685 | name="sitexmlfile" |
| 686 | value="${buildDirectory}/maps/webtools.maps/releng/sitefile/site.xml"/> |
| 687 | <property |
| 688 | file="${buildDirectory}/finalFeaturesVersions.properties"/> |
| 689 | <loadfile |
| 690 | property="sitefiletext" |
| 691 | srcFile="${sitexmlfile}"> |
| 692 | <filterchain> |
| 693 | <expandproperties/> |
| 694 | </filterchain> |
| 695 | </loadfile> |
| 696 | <echo |
| 697 | message="${sitefiletext}" |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 698 | file="${buildDirectory}/${buildLabel}/repository/site.xml"/> |
david_williams | b67b0c2 | 2009-03-17 19:25:29 +0000 | [diff] [blame] | 699 | <echo |
| 700 | message="${sitefiletext}" |
david_williams | 0fadc4e | 2010-03-01 04:45:19 +0000 | [diff] [blame] | 701 | file="${buildDirectory}/${buildLabel}/${component}/repository/site.xml"/> |
david_williams | 65f16aa | 2009-11-20 17:14:56 +0000 | [diff] [blame] | 702 | </target> |
| 703 | <target |
| 704 | name="updatePackPropertiesFile" |
| 705 | if="doNormalize"> |
| 706 | <updatePackProperties |
| 707 | archiveFilename="${buildDirectory}/${buildLabel}/${archiveName}"/> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 708 | </target> |
| 709 | <target |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 710 | name="nodefault"> |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 711 | <echo |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 712 | level="error" |
david_williams | 8819a49 | 2009-03-10 03:31:33 +0000 | [diff] [blame] | 713 | message="There is no default target for this buildutililites.xml ant script."/> |
| 714 | </target> |
david_williams | b0f0e6c | 2008-02-10 06:22:40 +0000 | [diff] [blame] | 715 | </project> |