Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: for the plan.

Jump to: navigation, search

Equinox/p2/Ant Tasks/Partial Mirroring/Example

< Equinox‎ | p2‎ | Ant Tasks

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">
    <repository location="" />
    <repository location="" />
    <repository location="" />
    <repository location="" />
    <repository location="" />
  < /source>
  <iu id="" />
  <iu id="" />
  <iu id="" />
  <iu id="" />
  <iu id="" />
  <iu id="" />
  <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"/>

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.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.