Bug 412146 - calculateOutput method of BuildDescription classe wrongly uses the tool output file extension attribute to create the resource outputs
Summary: calculateOutput method of BuildDescription classe wrongly uses the tool outpu...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 8.1.2   Edit
Hardware: PC Windows 7
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-02 17:14 EDT by guy bonneau CLA
Modified: 2020-09-04 15:17 EDT (History)
2 users (show)

See Also:


Attachments
Proposed solution to issue (848 bytes, patch)
2013-07-02 17:14 EDT, guy bonneau CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description guy bonneau CLA 2013-07-02 17:14:46 EDT
Created attachment 233003 [details]
Proposed solution to issue

The calculateOutput method  of build description wrongly uses the tool outputs file extension attribute to create the resource outputs of any outputType associated to the tool.  This prevent the build manager to resolve the appropriate build steps.

Reproducing step:

1- Add a new Browse Information Tool to the Visual Studio Toolchain with command tool being bscmake, inputType sbr and outputType bsc
2- Add a new secondary outputType to the Abstract C Toolchain with outputs attribute file extension being sbr, primaryOutput being false and multipleOfType false. Don't define a outputName, namePattern or nameProvider
3- Change the Debug boolean variable of class DbgUtil to true to have the info message.
4- Check that  input resource with file extension .sbr are not added as input to the action of browse step tool.