Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After a long search, I have found the answer. It's kind of a kludge, but I'm willing to do anything at this point. My solution is dependent upon the fact that my built RCP application includes p2 application org.eclipse.equinox.p2.director. I guess if your RCP app doesn't contain this application, you can refer to another Eclipse install in order to launch the Director. I just did it this way to avoid having an instance of Eclipse sitting on my build machine.</p> <p>I used the p2-dev mailing list, and Paul Webster answered my question. (Thanks Paul)</p> <p>He suggested using ant to launch the p2 director application to install the IU into my built RCP application. </p> <p>Here's his answer on the p2-dev mailing list <a href="http://dev.eclipse.org/mhonarc/lists/p2-dev/msg04735.html" rel="nofollow noreferrer">http://dev.eclipse.org/mhonarc/lists/p2-dev/msg04735.html</a></p> <p>Here's the ant target I came up with.</p> <pre><code>&lt;target name="install_IU"&gt; &lt;path id="launcher.paths"&gt; &lt;fileset dir="${app.dir}" includes="plugins/org.eclipse.equinox.launcher_*" /&gt; &lt;/path&gt; &lt;property name="launcherPath" refid="launcher.paths" /&gt; &lt;echo&gt;-installIU ${iu.id} &lt;/echo&gt; &lt;java jar="${launcherPath}" failonerror="false" dir="${app.dir}" timeout="900000" fork="true" output="${basedir}/director.log" resultproperty="directorcode"&gt; &lt;arg line="-application org.eclipse.equinox.p2.director" /&gt; &lt;arg line="-noSplash" /&gt; &lt;arg line="-installIUs ${iu.id}" /&gt; &lt;arg line="-repository ${iu.repo}" /&gt; &lt;arg line="-destination ${app.dir}" /&gt; &lt;arg line="-bundlepool ${app.dir}" /&gt; &lt;/java&gt; &lt;zip destfile="${app.zip}" basedir="${app.dir}"/&gt; &lt;/target&gt; </code></pre> <p>I put this in an ant file in the same project that produces my Eclipse RCP application via Tycho. Tycho produces my build artifacts in a directory called "target" so my parameters to the ant target above look like this...</p> <pre><code>&lt;target name="modify_x86"&gt; &lt;antcall target="install_IU"&gt; &lt;param name="iu.id" value="com.mydomain.the.feature.i.want.to.install.feature.feature.group"/&gt; &lt;param name="iu.repo" value="http://mydomain.com/thep2repository/where/i/deploy/the/feature/to/install"/&gt; &lt;param name="app.dir" value="${basedir}/target/products/com.mydomain.myRCPapplication/win32/win32/x86"/&gt; &lt;param name="app.zip" value="${basedir}/target/products/com.mydomain.myRCPapplication-win32.win32.x86.zip"/&gt; &lt;/antcall&gt; &lt;/target&gt; </code></pre> <p>I have a few more of these targets for each platform that my RCP application is built for.</p> <p>Hope this helps.</p> <p>UPDATE: May 8th, 2014. Tobias has brought it to my attention that I should change the accepted answer from this one to the one that has the new feature that was added to Tycho 0.20.0 that enables this behavior in a much more simple fashion. So, the new accepted answer is the proper solution for this question now.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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