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

Bug 344685

Summary: Need a way to disable "build before launching" on per-conf.type basis
Product: [Eclipse Project] Platform Reporter: Andrey <razumovsky.andrey>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: Michael_Rennie, remy.suen
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andrey CLA 2011-05-04 06:14:51 EDT
Build Identifier: 20110301-1815

I have my own launch configuration type, and I really don't want configurations of that type to trigger build of the whole workspace before launching. Currently this is only controlled by "Build before launching" flag on whole workspace basis. Would be great to have that parameter in launch configuration type's configuration.

Reproducible: Always

Steps to Reproduce:
1.Define your own launch conf. type
2.Define a way to launch it
3. Ensure "Build before launching" flag is set
3.Observe that whole WS is build -> need a way to control that
Comment 1 Andrey CLA 2011-05-04 08:00:33 EDT
I also can't do a temporary disabling in ILaunchConfigurationDelegate2.preLaunchCheck(), because it is done *after* checking "Build before launching" preference value. Any workaround will be much appreciated
Comment 2 Michael Rennie CLA 2011-05-13 13:35:20 EDT
(In reply to comment #1)
> I also can't do a temporary disabling in
> ILaunchConfigurationDelegate2.preLaunchCheck(), because it is done *after*
> checking "Build before launching" preference value. Any workaround will be much
> appreciated

What are you returning from ILaunchConfigurationDelegate2.buildForLaunch()?
Comment 3 Andrey CLA 2011-05-13 13:46:03 EDT
Thanks Michael,

Accidently I've already found this solution. Once again Eclipse anticipated my needs :)