Jump to: navigation, search

Difference between revisions of "Equinox/p2/Ant Tasks/Partial Mirroring/Example/Galileo"

(New page: This example will fetch Subversive, SVNKit, the connectors, and all requirements from their respective sites into a local p2 repo (mirror). Then, a copy will be made which excludes all ...)
 
Line 1: Line 1:
 
This example will fetch Subversive, SVNKit, the connectors, and all requirements from their respective sites into a local p2 repo (mirror).
 
This example will fetch Subversive, SVNKit, the connectors, and all requirements from their respective sites into a local p2 repo (mirror).
 
  
 
Then, a copy will be made which excludes all by the SVN and JNA plugins/features.
 
Then, a copy will be made which excludes all by the SVN and JNA plugins/features.
 
  
 
From that site, a site.xml will be generated.
 
From that site, a site.xml will be generated.
 
  
 
Finally, that site.xml will be used to produce metadata.
 
Finally, that site.xml will be used to produce metadata.
 
  
 
The resulting site will then be zipped.
 
The resulting site will then be zipped.
 
  
 
Here's the p2.mirror task:
 
Here's the p2.mirror task:
Line 38: Line 33:
 
</source>
 
</source>
 
   
 
   
 
+
* [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dash.common.releng/tools/scripts/partialMirrorFromRepo.xml?root=Technology_Project&view=markup The rest of the script can be seen here]. It requires Ant-Contrib.
[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dash.common.releng/tools/scripts/partialMirrorFromRepo.xml?root=Technology_Project&view=markup The rest of the script can be seen here]. It requires Ant-Contrib.
+

Revision as of 18:48, 20 July 2009

This example will fetch Subversive, SVNKit, the connectors, and all requirements from their respective sites into a local p2 repo (mirror).

Then, a copy will be made which excludes all by the SVN and JNA plugins/features.

From that site, 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.2.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.cloudsmith.com/galileoplus/" />
  < /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" />
 
  <slicingOptions includeFeatures="true" />
</p2.mirror>