Jump to: navigation, search

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

Line 1: Line 1:
 
This example will fetch Subversive, SVNKit, and the connectors from their respective sites into a local p2 repo (mirror).
 
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 <code>followStrict="false"</code> .
+
<br>
 +
If you also want to fetch all lower-level Eclipse requirements, set <code>followStrict="false"</code> .
 
   
 
   
From the local repo, a site.xml will be generated.
+
 
 +
<br>
 +
From the local repo, a site.xml will be generated.
 
   
 
   
Finally, that site.xml will be used to produce metadata.
+
 
 +
<br>
 +
Finally, that site.xml will be used to produce metadata.
 
   
 
   
The resulting site will then be zipped.
+
 
 +
<br>
 +
The resulting site will then be zipped.
 
   
 
   
Here's the p2.mirror task:
+
 
 +
<br>
 +
Here's the p2.mirror task:
 
   
 
   
  <source lang="xml"><property name="working.dir" value="/tmp/partial-repo-mirror"></property>
+
 
<p2 .mirror="" destination="file:/${working.dir}" description="Subversive All-In-One Repo"><source><repository location="http://eclipse.svnkit.com/1.2.x/"></repository>
+
<br>
<repository location="http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/"></repository>
+
  <source lang="xml">
<repository location="http://download.eclipse.org/technology/subversive/0.7/update-site/"></repository>
+
<property name="working.dir" value="/tmp/partial-repo-mirror" />
<repository location="http://download.eclipse.org/rt/ecf/3.0/3.5/repo/"></repository>
+
<p2.mirror destination="file:/${working.dir}" description="Subversive All-In-One Repo">
<repository location="http://download.eclipse.org/releases/galileo/"></repository>
+
  <source>
<repository location="http://download.cloudsmith.com/galileoplus/"></repository>
+
    <repository location="http://eclipse.svnkit.com/1.2.x/" />
< /source>
+
    <repository location="http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/" />
<iu id="org.tmatesoft.svnkit.feature.group"></iu>
+
    <repository location="http://download.eclipse.org/technology/subversive/0.7/update-site/" />
<iu id="com.sun.jna.feature.group"></iu>
+
    <repository location="http://download.eclipse.org/rt/ecf/3.0/3.5/repo/" />
+
    <repository location="http://download.eclipse.org/releases/galileo/" />
<iu id="org.polarion.eclipse.team.svn.connector.feature.group"></iu>
+
    <repository location="http://download.cloudsmith.com/galileoplus/" />
<iu id="org.polarion.eclipse.team.svn.connector.svnkit16.feature.group"></iu>
+
  < /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>
 +
</source>
 
   
 
   
<iu id="org.eclipse.team.svn.resource.ignore.rules.jdt.feature.group"></iu>
+
 
<iu id="org.eclipse.team.svn.feature.group"></iu>
+
<br>
   
+
  [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.
<iu id="org.eclipse.ecf"></iu>
+
<iu id="org.eclipse.ecf.filetransfer"></iu>
+
<iu id="org.eclipse.ecf.identity"></iu>
+
<iu id="org.eclipse.ecf.provider.filetransfer"></iu>
+
<iu id="org.eclipse.ecf.provider.filetransfer.httpclient"></iu>
+
<iu id="org.eclipse.ecf.provider.filetransfer.httpclient.ssl"></iu>
+
<iu id="org.eclipse.ecf.provider.filetransfer.ssl"></iu>
+
<iu id="org.eclipse.ecf.ssl"></iu>
+
+
<slicingoptions includefeatures="true" followstrict="true"></slicingoptions>
+
+
</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.&lt;/p2&gt;&lt;/source&gt;
+

Revision as of 17:46, 21 July 2009

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.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.eclipse.org/rt/ecf/3.0/3.5/repo/" />
    <repository location="http://download.eclipse.org/releases/galileo/" />
    <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" />
 
  <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.