| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (c) 2010, 2019 IBM Corporation and others. |
| This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License 2.0 |
| which accompanies this distribution, and is available at |
| https://www.eclipse.org/legal/epl-2.0/ |
| |
| SPDX-License-Identifier: EPL-2.0 |
| |
| Contributors: |
| IBM Corporation - initial API and implementation |
| --> |
| |
| <project |
| default="nodefault" |
| basedir="."> |
| <target name="premirrortasks"> |
| <!-- |
| if desired zip already exists, remove it. It normally would |
| not exist, but might if restarting a build, or something |
| --> |
| <delete |
| file="${buildDirectory}/${buildLabel}/${newarchiveName}" |
| quiet="true" |
| failonerror="false"/> |
| </target> |
| <target name="createzippedrepo"> |
| <!-- are these required? |
| <copy |
| todir="${tempRunnableEclipse}" |
| overwrite="false"> |
| <fileset |
| dir="${wtp.builder.home}/rootfiles"> |
| </fileset> |
| </copy> |
| --> |
| <zip |
| destfile="${buildDirectory}/${buildLabel}/components/${newarchiveName}" |
| basedir="${tempRepo}"/> |
| <delete |
| dir="${tempRepo}" |
| quiet="true" |
| failonerror="false"/> |
| <ant |
| antfile="${wtp.builder.home}/scripts/build/buildutilitiesp2.xml" |
| target="createChecksums"> |
| <property |
| name="subdir" |
| value="components/"/> |
| <property |
| name="archiveName" |
| value="${newarchiveName}"/> |
| </ant> |
| </target> |
| <target name="postmirrortasks"> |
| <p2.repo2runnable> |
| <repository location="${tempRunnableEclipse}"/> |
| <source> |
| <repository location="${tempRepo}"/> |
| </source> |
| </p2.repo2runnable> |
| <!-- |
| remove content.jar and artifacts.jar, since not in |
| traditional zips |
| --> |
| <delete |
| file="${tempRunnableEclipse}/artifacts.jar" |
| quiet="true" |
| failonerror="false"/> |
| <delete |
| file="${tempRunnableEclipse}/content.jar" |
| quiet="true" |
| failonerror="false"/> |
| <!-- copy in standard root license files --> |
| <copy |
| todir="${tempRunnableEclipse}" |
| overwrite="false"> |
| <fileset dir="${wtp.builder.home}/rootfiles"> |
| </fileset> |
| </copy> |
| <zip |
| destfile="${buildDirectory}/${buildLabel}/${newarchiveName}" |
| basedir="${tempDir}"/> |
| <delete |
| dir="${tempDir}" |
| quiet="true" |
| failonerror="false"/> |
| <delete |
| dir="${tempRepo}" |
| quiet="true" |
| failonerror="false"/> |
| <ant |
| antfile="${wtp.builder.home}/scripts/build/buildutilitiesp2.xml" |
| target="createChecksums"> |
| <property |
| name="buildDirectory" |
| value="${buildDirectory}"/> |
| <property |
| name="buildLabel" |
| value="${buildLabel}"/> |
| <property |
| name="archiveName" |
| value="${newarchiveName}"/> |
| </ant> |
| </target> |
| <target name="nodefault"> |
| <fail message="There is do default task. Must be specified when calling."/> |
| </target> |
| </project> |