Equinox/p2/Ant Tasks/Partial Mirroring/Example
This example will fetch Subversive, SVNKit, and the connectors from their respective sites into a local p2 repo (mirror).
If you also want to fetch all lower-level Eclipse requirements, set followStrict="false"
.
From the local repo, a site.xml will be generated.
Finally, that site.xml will be used to produce metadata.
The resulting site will then be zipped.
Here's the p2.mirror task:
<property name="working.dir" value="/tmp/partial-repo-mirror" /> <p2.mirror destination="file:/${working.dir}" description="Subversive All-In-One Repo"> <source> <repository location="http://eclipse.svnkit.com/1.3.x/" /> <repository location="http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/" /> <repository location="http://download.eclipse.org/technology/subversive/0.7/update-site/" /> <repository location="http://download.eclipse.org/rt/ecf/3.2/3.6/site.p2" /> <repository location="http://download.eclipse.org/releases/helios/" /> < /source> <iu id="org.tmatesoft.svnkit.feature.group" /> <iu id="com.sun.jna.feature.group" /> <iu id="org.polarion.eclipse.team.svn.connector.feature.group" /> <iu id="org.polarion.eclipse.team.svn.connector.svnkit16.feature.group" /> <iu id="org.eclipse.team.svn.resource.ignore.rules.jdt.feature.group" /> <iu id="org.eclipse.team.svn.feature.group" /> <iu id="org.eclipse.ecf" /> <iu id="org.eclipse.ecf.filetransfer" /> <iu id="org.eclipse.ecf.identity" /> <iu id="org.eclipse.ecf.provider.filetransfer" /> <iu id="org.eclipse.ecf.provider.filetransfer.httpclient" /> <iu id="org.eclipse.ecf.provider.filetransfer.httpclient.ssl" /> <iu id="org.eclipse.ecf.provider.filetransfer.ssl" /> <iu id="org.eclipse.ecf.ssl" /> <slicingOptions includeFeatures="true" followStrict="true"/> </p2.mirror>
- The rest of the script can be seen here. It requires Ant-Contrib, and will automatically download and use it.
NOTE: While the example code above is licensed under the Eclipse Public License (EPL), some of the software fetched by RUNNING the above example is decidedly NOT.
- Previous version of this page: Equinox/p2/Ant Tasks/Partial Mirroring/Example/Galileo