Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] config.ini problem with eclipse-repository

Hello Tycho-People,

we use tycho 0.14.1 to build an rcp project with a plugin-based eclipse-product for 3 platforms. Configuration is like recommended on http://wiki.eclipse.org/Tycho/Reference_Card#Products
We have 3 product files with different IDs in our project root, but we choose only 1 for the tycho-p2 plugins like shown below.

In this setup, a wrong configuration of start levels in one of the products tycho should ignore leads to a broken config.ini in the product tycho builds.

Broken in this case means that the line "osgi.bundles=" in the config.ini contains all bundles from the product and not only the simpleconfigurator. This does not work while the simpleconfigurator version works fine.

The part of the pom.xml

            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-repository-plugin</artifactId>
                <version>${tycho-version}</version>
                <configuration>
                    <products>
                        <product>
                            <id>applicationproduct</id>
                        </product>
                    </products>
                    <includeAllDependencies>false</includeAllDependencies>
                </configuration>
            </plugin>
              <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-director-plugin</artifactId>
                <version>${tycho-version}</version>
                <executions>
                    <execution>
                        <id>materialize-products</id>
                        <goals>
                            <goal>materialize-products</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <products>
                        <product>
                            <id>applicationproduct</id>
                        </product>
                    </products>
                </configuration>
            </plugin>


When I remove the other products from the project, the config.ini is generated with this line for the bundles:

osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20110502-1955.jar@1\:start

This is like I expect it and this way the application works perfect. All other bundles are listed in bundles.info and start like they should. I think this is the correct usage of the simpleconfigurator.


However, I found a workaround for me, but I wondered if this is a bug and if you are interested in more information. I did not find anything on that topic yet.

What I forgot - in the product definition of the relevant product, the 4 necessary bundles for simpleconfigurator are included like that:

<plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" />

This seems to influence the generation of config.ini


Let me know if I can assist you in making tycho even better.


cheers
Michael

Back to the top