Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 274901

Summary: After exporting, a product with a start level of "default" won't start
Product: [Eclipse Project] PDE Reporter: Andrew Niefer <aniefer>
Component: BuildAssignee: pde-build-inbox <pde-build-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bh, irbull, pascal
Version: 3.5Flags: pascal: review+
Target Milestone: 3.5 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch
none
updated none

Description Andrew Niefer CLA 2009-05-04 17:38:53 EDT
Copied from bug 273961

I'm not using a custom config.ini.  I'm using the default values for a new
product file, so it's a plugin-based product.  

One thing I should mention - this is a bundle line-up that does not include
simpleconfigurator, so I'm looking at the osgi.bundles property in config.ini. 
If I add simpleconfigurator (and prereqs) to my line-up, then bundles.list does
get populated correctly and the product runs just fine.

To reproduce:

1. New workspace
2. Configured my target to point to only 3.5M7 equinox-sdk and delta-pack
bundles. 
3. New generic project containing new product file.
4. Leave Product and Application values unset.
5. On Dependencies tab, add org.eclipse.equinox.http bundle, Add Required
Plug-ins,should have 5 in the list.
6. On Configuration tab, add http bundle.  Set auto-start to true (see ****
below) 
7. On Launching tab, add "-console" to Program Arguments, add
"-Dosgi.noShutdown=true -Declipse.ignoreApp=true" to VM args.  Also used
"Bug273961" as the launcher name.
8. Export product (I have "sync" and "generate metadata" turned off), resulting
config.ini has "@0:start" values for http bundle.

*** I just reported bug 274889, which prevented me from changing the auto-start
value via the editor.  Please update that bug if you can or can't reproduce
this issue too.  If you do run into the same issue, just open the .product file
as a text file and change the start level there.

I get the same results with an existing product file that has several bundles
enabled for auto-start at default start level.

I will also attach my product file here for reference.  If you want me to post
a quick screencast running thru the scenario on my computer, I'd be happy to do
that.
Comment 1 Andrew Niefer CLA 2009-05-04 18:32:00 EDT
Created attachment 134331 [details]
patch
Comment 2 Andrew Niefer CLA 2009-05-05 15:00:19 EDT
Created attachment 134494 [details]
updated

updated patch, any <= 0 gets default
Comment 3 Andrew Niefer CLA 2009-05-05 16:26:00 EDT
done
Comment 4 Brett Hackleman CLA 2009-05-07 16:27:10 EDT
Verified fix works for me in I20090507-0731.  Thanks Andrew!