| <project |
| default="p2Mirror" |
| basedir="."> |
| <!-- for misc manual tests only --> |
| <property |
| name="todir" |
| value="${user.home}/temp/testrepo"/> |
| <property |
| name="fromRepoDir" |
| value="/home/data/httpd/download.eclipse.org/releases/juno"/> |
| <target name="p2Mirror"> |
| |
| <mkdir dir="${todir}"/> |
| |
| <p2.mirror |
| ignoreErrors="true" |
| log="${todir}/mirrorlog.txt"> |
| <repository |
| location="file://${todir}" |
| name="A temp test repo"/> |
| <source> |
| <repository location="file://${fromRepoDir}"/> |
| </source> |
| <!-- <slicingOptions platformFilter="true"/> --> |
| </p2.mirror> |
| |
| |
| |
| |
| <!-- mirror from build results, comparing against previous builds that are in the composite repo --> |
| <!-- |
| <p2.mirror> |
| <source location="file:${assemblyTempDir}/${buildLabel}"/> |
| <destination location="file:${builder}/composite/${buildLabel}"/> |
| <comparator |
| comparator="org.eclipse.equinox.p2.repository.tools.jar.comparator" |
| comparatorLog="${buildDirectory}/comparator.log"> |
| <repository location="file:${builder}/composite"/> |
| </comparator> |
| </p2.mirror> |
| --> |
| </target> |
| </project> |
| |