Is there a "normal" p2 IU for a product in a repository [message #692826] |
Tue, 05 July 2011 10:02 |
|
Hi all,
I'd like to add an explicit dependency to my product for my test
execution with Tycho. Howerver, I did not find any installation unit
that installs me the whole product.
Is there an installation unit for a product that I could consume with Tycho?
Here is what I currently do, it is a re-definition of the content of my
product in the pom,xml:
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<argLine>-Xms64m -Xmx1024m -XX:MaxPermSize=128M</argLine>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<product>com.ebmwebsourcing.petals.studio.product</product>
<application>org.eclipse.ui.ide.workbench</application>
<dependencies>
<dependency>
<type>p2-installable-unit</type>
<artifactId>
com.ebmwebsourcing.petals.studio.rcp.feature.feature.group
</artifactId>
<version>0.0.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>
com.ebmwebsourcing.petals.studio.sca.feature.feature.group
</artifactId>
<version>0.0.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>
com.ebmwebsourcing.petals.studio.bpel.feature.feature.group
</artifactId>
<version>0.0.0</version>
</dependency>
<dependency>
<type>p2-installable-unit</type>
<artifactId>
com.ebmwebsourcing.petals.studio.core.feature.feature.group
</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
<configuration>
</plugin>
</plugins>
</build>
And I'd like to replace all the <dependencies.../> block by something like:
<dependencies>
<dependency>
<type>p2-installable-unit</type>
<artifactId>com.ebmwebsourcing.petals.studio.product
</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
I gave some unseccessful tries. Is there a way to consume directly a
product with p2, that I could leverage in Tycho?
Regards
|
|
|
Re: Is there a "normal" p2 IU for a product in a repository [message #698878 is a reply to message #692826] |
Wed, 20 July 2011 12:17 |
|
If you are doing a product build, PDE build will create a IU in your repo with the product ID as spec'ed in your .product file. That's the ID that can be used to instantiate a product with the director. Ex, our .product file:
<product name="Eclipse SDK" id="org.eclipse.sdk.ide" application="org.eclipse.ui.ide.workbench" version="4.1.0.I20110719-2201" useFeatures="true" includeLaunchers="true">
....
</product>
When I build my product, I can do:
$INSTALLER_HOME/eclipse \
-application org.eclipse.equinox.p2.director \
-noSplash \
-repository \
$BUILD_DIR/repository \
-installIU org.eclipse.sdk.ide \
-destination $BUILD_DIR/eclipse \
-bundlepool $BUILD_DIR/eclipse \
-profile SDKProfile \
-profileProperties org.eclipse.update.install.features=true \
-p2.os linux \
-p2.ws gtk \
-p2.arch x86_64 \
-roaming
To make sure your IU is there, you can use:
$INSTALLER_HOME/eclipse \
-application org.eclipse.equinox.p2.director \
-noSplash \
-repository \
$BUILD_DIR/repository \
-list
Later,
PW
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
Powered by
FUDForum. Page generated in 0.03605 seconds