blob: 690ced5da3de6e8532492b12f8ef47b87bd03687 [file] [log] [blame]
<!--
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="p2Mirror"
basedir=".">
<!-- for misc manual tests only -->
<property
name="todir"
value="/shared/webtools/tmp/testrepomirror"/>
<!--
value="/home/data/httpd/download.eclipse.org/webtools/downloads/drops/R3.2.1/R-3.2.1-20100730021206/repository/" />
-->
<property
name="baseComparatorRepoDir"
value="/home/data/httpd/download.eclipse.org/webtools/downloads/drops/R3.2.0/R-3.2.0-20100615235519/repository/"/>
<property
name="repoToMirror"
value="/home/data/httpd/download.eclipse.org/webtools/downloads/drops/R3.2.2/M-3.2.2-20100910064233/repository/"/>
<target name="p2Mirror">
<delete quiet="true" failonerror="false">
<dirset dir="${todir}"/>
</delete>
<mkdir dir="${todir}"/>
<p2.mirror
ignoreErrors="true"
verbose="true"
log="${todir}/mirrorlog.txt">
<repository
location="file:/${todir}"
name="A temp test repo"/>
<source>
<repository location="file:/${repoToMirror}"/>
</source>
<comparator
comparator="org.eclipse.equinox.p2.repository.tools.jar.comparator"
comparatorLog="${todir}/comparator.log">
<repository location="file:/${baseComparatorRepoDir}"/>
</comparator>
<slicingoptions followStrict="true"/>
</p2.mirror>
</target>
</project>