Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Startlevel specified for product gets ignored

sorry, did not pay enough attention when reading. 

I opened p2 director bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=412304

for this.

Regards,
Jan


From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of David Schmitz
Sent: Donnerstag, 4. Juli 2013 13:50
To: Tycho user list
Subject: Re: [tycho-user] Startlevel specified for product gets ignored

Hi Jan,

I am not talking about changing individual startLevels but changing the defaultStartLevel to level 5. 
Specifying startlevels for individual bundles is no problem but I need to lift defaultStartLevel to 5 which is not working

Regards
David
Gesendet: Donnerstag, 04. Juli 2013 um 10:02 Uhr
Von: "Sievers, Jan" <jan.sievers@xxxxxxx>
An: "Tycho user list" <tycho-user@xxxxxxxxxxx>
Betreff: Re: [tycho-user] Startlevel specified for product gets ignored 
http://git.eclipse.org/c/tycho/org.eclipse.tycho-demo.git/tree/itp04-rcp

is a working example with startlevels configured in the .product file

Jan

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of David Schmitz
Sent: Mittwoch, 3. Juli 2013 19:04
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Startlevel specified for product gets ignored

Hi,

I am trying to set the default startLevel for my products to level 5 via p2.inf file.
The p2.inf file match the pattern productId.p2.inf. However the start level is ignored. 

p2.inf content:

instructions.configure = \ 
    setStartLevel(startLevel:5); \ 
    markStarted(started: true); 

I have also tried to set start level in .product file via property 

 <property name="osgi.bundles.defaultStartLevel" value="5" />    

in the configuration section but this is gets also ignored. My products get always generated with startLevel 4.

This is the pom of my product bundle:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>parent</artifactId>
    <groupId>com.navteq.wiki.upstream.build</groupId>
    <version>1.0.0-SNAPSHOT</version>
    <relativePath>../com.navteq.wiki.upstream.build/pom.xml</relativePath>
  </parent>
  <artifactId>com.navteq.wiki.upstream.repository</artifactId>
  <name>Navteq Wiki Upstream Product Repository</name>
  <packaging>eclipse-repository</packaging>

  <build>
    <plugins>
      <plugin>
        <groupId>${tycho-groupid}</groupId>
        <artifactId>tycho-p2-director-plugin</artifactId>
        <version>${tycho-version}</version>
        <executions>
          <execution>
            <id>materialize-products</id>
            <goals>
              <goal>materialize-products</goal>
            </goals>
          </execution>
          <execution>
            <id>archive-products</id>
            <goals>
              <goal>archive-products</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <products>
            <product>
              <id>wikiupstream</id>
              <attachId>wikiupstream</attachId>
            </product>
            <product>
              <id>wikiupstream-aws</id>
              <attachId>wikiupstream-aws</attachId>
            </product>
          </products>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

Has anyone some advice what I am doing wrong or is it a bug?

PS: I am using Tycho 0.18.


Regards
David
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top