Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344685 - Need a way to disable "build before launching" on per-conf.type basis
Summary: Need a way to disable "build before launching" on per-conf.type basis
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-04 06:14 EDT by Andrey CLA
Modified: 2011-05-13 13:46 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 :)