Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Since there is a likely chance I'll have to do this again, and no chance I remember how to do it the next time, I'll write down the steps I went through: </p> <p>I created a p2.inf file with instructions;</p> <pre><code>instructions.configure=\ org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(type:0,location:http${#58}//&lt;my_url_here&gt;,name:&lt;my_name_here&gt;,enabled:true);\ org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(type:1,location:http${#58}//&lt;my_url_here&gt;,name:&lt;my_name_here&gt;,enabled:true);\ org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(type:0,location:http${#58}//&lt;my_url_here&gt;,name:&lt;my_name_here&gt;,enabled:true);\ org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(type:1,location:http${#58}//&lt;my_url_here&gt;,name:&lt;my_name_here&gt;,enabled:true);` </code></pre> <p>According to <a href="http://wiki.eclipse.org/Equinox/p2/Customizing_Metadata" rel="nofollow noreferrer">the Eclipse wiki</a> the inf-file could be placed in the same dir as my <code>feature.xml</code>, so that's what I did. </p> <p>I had a product that consisted of this feature, so I exported the product using Eclipse product export wizard. I made sure to build a repository. </p> <p>After the build was done, the repository had a content.jar. Inside the content.jar there was a content.xml. Examining it, I could find:</p> <pre><code>&lt;touchpointData size='1'&gt; &lt;instructions size='1'&gt; &lt;instruction key='configure'&gt; org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(&lt;all my update sites&gt;); &lt;/instruction&gt; &lt;/instructions&gt; &lt;/touchpointData&gt; </code></pre> <p>So this verified that the export did actually see my p2.inf file and do something with it. </p> <p>To install from the repository I used an Eclipse Director script:</p> <pre><code>cmd /c "C:\Program\Eclipse\director\director -consoleLog -bundlepool c:/program/eclipse/eclipse3.6_custom -profileProperties "org.eclipse.update.install.features=true" -i MyProduct.Product -r "file:/C:\eclipse\exported\repository" -d c:/program/eclipse/eclipse3.6_custom -p helios"` </code></pre> <p>The script installed the product from the repository to the destination. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload