[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] simpleconfigurator and product build

Hi,

(sorry if this isn't the right group or list to ask this question but I couldn't find a better place)

I spent quite some time the last days to update our product build to not reuse org.eclipse.platform.ide as this causes issues when updating to a new SR. 

The issue with the product build is that as soon as I remove the reference to org.eclipse.platform from the top-level product feature, I don't get the simpleconfigurator configured in my config.ini and all bundles will be listed in the osgi.bundles. 

Can anybody shed some light on how I get the simpleconfigurator to work correctly in this scenario?

Please see the .product configuration and product feature.xml below. Is there anything else I need to provide?

Thanks for any help or pointers.

Christian

I use the following call to generate the product metadata:

publish-product-helper:
    [echo] Publishing /build/sts/releng/com.springsource.sts.releng/build/features/com.springsource.sts.package/sts.product to /build/sts/releng/com.springsource.sts.releng/update/e3.5
    [java] !SESSION 2009-11-19 14:31:54.929 -----------------------------------------------
    [java] eclipse.buildId=M20090917-0800
    [java] java.version=1.5.0_19
    [java] java.vendor=Sun Microsystems Inc.
    [java] BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
    [java] Framework arguments:  -application org.eclipse.equinox.p2.publisher.ProductPublisher -metadataRepository file:/build/sts/releng/com.springsource.sts.releng/update/e3.5 -artifactRepository file:/build/sts/releng/com.springsource.sts.releng/update/e3.5 -productFile /build/sts/releng/com.springsource.sts.releng/build/features/com.springsource.sts.package/sts.product -append -publishArtifacts -executables /build/sts/releng/com.springsource.sts.releng/tools/sdk-3.5/delta-pack/eclipse/features/org.eclipse.equinox.executable_3.3.200.R35x_v20090724-7M-FneFF9aMTyz0pw04ONXn -flavor tooling -configs win32.win32.x86,win32.win32.x86_64,gtk.linux.x86,gtk.linux.x86_64,cocoa.macosx.x86,cocoa.macosx.x86_64,carbon.macosx.ppc
    [java] Command-line arguments:  -consolelog -data /build/sts/releng/com.springsource.sts.releng/build/workspace -application org.eclipse.equinox.p2.publisher.ProductPublisher -metadataRepository file:/build/sts/releng/com.springsource.sts.releng/update/e3.5 -artifactRepository file:/build/sts/releng/com.springsource.sts.releng/update/e3.5 -productFile /build/sts/releng/com.springsource.sts.releng/build/features/com.springsource.sts.package/sts.product -append -publishArtifacts -executables /build/sts/releng/com.springsource.sts.releng/tools/sdk-3.5/delta-pack/eclipse/features/org.eclipse.equinox.executable_3.3.200.R35x_v20090724-7M-FneFF9aMTyz0pw04ONXn -flavor tooling -configs win32.win32.x86,win32.win32.x86_64,gtk.linux.x86,gtk.linux.x86_64,cocoa.macosx.x86,cocoa.macosx.x86_64,carbon.macosx.ppc
    [java] 
    [java] !ENTRY org.eclipse.equinox.p2.repository 4 0 2009-11-19 14:31:57.947
    [java] !MESSAGE ProvisioningEventBus could not be obtained. Metadata caches may not be cleaned up properly.
    [java] Generating metadata for ..
    [java] Generation completed with success [0 seconds].

*********************************************************************

<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
<product name="SpringSource Tool Suite" id="com.springsource.sts.ide" application="org.eclipse.ui.ide.workbench" version="@QUALIFIER@" useFeatures="true" includeLaunchers="true">

  <configIni use="default">
  </configIni>

  <launcherArgs>
  snip
  </launcherArgs>

  <launcher name="STS">
  snip
  </launcher>

  <vm>
  </vm>

  <plugins>
  </plugins>

  <features>
     <feature id="com.springsource.sts.package" version="@QUALIFIER@"/>
     <feature id="org.eclipse.equinox.p2.user.ui"/>
     <feature id="org.eclipse.rcp.configuration"/>
  </features>

  <configurations>
     <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="4" />
     <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.event" autoStart="true" startLevel="2" />      
     <plugin id="org.eclipse.equinox.p2.reconciler.dropins" autoStart="true" startLevel="4" />
     <plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" />
     <plugin id="org.eclipse.update.configurator" autoStart="true" startLevel="3" />
     <property name="org.eclipse.update.reconcile" value="false" />                                        
     <property name="osgi.bundles.defaultStartLevel" value="4" />   
     <property name="eclipse.buildId" value="@QUALIFIER@"/>   
  </configurations>

</product>

*********************************************************************

<?xml version="1.0" encoding="UTF-8"?>
<feature
     id="com.springsource.sts.package"
     label="%featureName"
     version="2.2.1.qualifier"
     provider-name="%providerName"
     plugin="com.springsource.sts">

  <!-- <includes
        id="org.eclipse.platform"
        version="0.0.0"
        search-location="both"/> -->

  <requires>
     <import feature="org.eclipse.cvs"/>
     <import feature="org.eclipse.help"/>
     <import feature="org.eclipse.jdt"/>
     <import feature="org.eclipse.platform"/>
     <!-- import all the same as the JEE package -->

  </requires>

</feature>