Eclipse >> Ant task >> Mirror p2 repository
<eclipseInstall>eclipse.exe -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication -source http://download.eclipse.org/incquery/updates/release -destination file:E:/Eclipses/TPs/incquery
<?xml version="1.0" encoding="UTF-8"?>
<project name="Mirror Incquery p2 repository" default="mirror">
<target name="mirror">
<p2.mirror source="http://download.eclipse.org/incquery/updates/release">
<destination location="file:E:/Eclipses/TPs/incquery-1.1.0" />
<slicingOptions latestVersionOnly="true" />
</p2.mirror>
</target>
</project>
<!--
Sources:
https://wiki.eclipse.org/Equinox/p2/Ant_Tasks#Simple_Examples
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_repositorytasks.htm-->
<!--***NOTE Run the ANT script with the same JRE as the workspace-->