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

Bug 317582

Summary: No resources created to represent build output files for non-primary outputTypes of target tools
Product: [Tools] CDT Reporter: Matthew Fortune <matthew.fortune>
Component: cdt-build-managedAssignee: Project Inbox <cdt-build-managed-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: matthew.fortune
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Search for outputs for all outputTypes for target tools none

Description Matthew Fortune CLA 2010-06-22 09:52:45 EDT
Build Identifier: I20100312-1448

When a toolchain's target tool has multiple outputTypes defined only the file produced as the primary output type is found when calculating a build step's outputs.

The calculateOutputs function in BuildDescription only finds the primary output from a target tool and uses the artifact name+extension to locate the file. For non-target tools, all output types are taken in to account and all outputs are found.

Reproducible: Always

Steps to Reproduce:
1. Define a target tool that produces multiple outputs
2. Build a project
3. Only the primary output will appear in the resource tree
Comment 1 Matthew Fortune CLA 2010-06-22 09:55:48 EDT
Created attachment 172416 [details]
Search for outputs for all outputTypes for target tools

This fix allows the primary output of a target tool to continue being processed using the artifact name + extension as required but also allows other outputTypes for the target tool to be analysed to determine if the relevant output files have been created by the build step.

This allows a target tool to produce multiple outputs and for them all to appear in the resource tree.