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

Bug 313796

Summary: [Contribution] Build Selected File(s) silently fails on files that are excluded from build
Product: [Tools] CDT Reporter: Miwako Tokugawa <miwako.tokugawa>
Component: cdt-build-managedAssignee: Project Inbox <cdt-build-managed-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: trivial    
Priority: P3 CC: yevshif
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch - do not call builder for an excluded file none

Description Miwako Tokugawa CLA 2010-05-20 15:08:04 EDT
Build Identifier: cdt7

Hi.
If you select "Build Selected File(s)" with a file that is marked "excluded from build", invokeInternalBuilder actually exceptions out because buildResource is null. However, Console simply displays
Reuilding selected file(s)
**** Internal Builder is used for build ****
without anything like
"Build Error" (I thought the catch clause was designed to print this).

Don't know what needs to be done.
Should the menu item be disabled for excluded files?
Or should the code be smarter that internalbuilder isn't called for excluded files?
Or nothing?

Reproducible: Always
Comment 1 Miwako Tokugawa CLA 2011-02-11 18:15:59 EST
Created attachment 188825 [details]
Patch - do not call builder for an excluded file