Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337257 - Make target: Files in referenced projects are not saved
Summary: Make target: Files in referenced projects are not saved
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Andrew Gvozdev CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-15 17:12 EST by Axel Mueller CLA
Modified: 2011-02-16 00:21 EST (History)
1 user (show)

See Also:


Attachments
save files in all referenced projects before build of make target (1.11 KB, patch)
2011-02-15 17:15 EST, Axel Mueller CLA
angvoz.dev: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Mueller CLA 2011-02-15 17:12:57 EST
Build Identifier: CDT 7.1

I have two Makefile projects for common library code and the actual application. The application project has the library project as a reference. When I build my application using a Make Target only the unsaved files from the application project are saved. Changes in the library project stay unsaved. This forces me to save them manually before actual build them. The preference option "Save automatically before build" is enabled.
A comparable problem for managed build was fixed in #170590

Reproducible: Always

Steps to Reproduce:
1. create two makefile projects
2. proj1 has proj2 as a reference
3. build proj1 (default "make all" build command or use a specific make target)
Comment 1 Axel Mueller CLA 2011-02-15 17:15:32 EST
Created attachment 189054 [details]
save files in all referenced projects before build of make target
Comment 2 Andrew Gvozdev CLA 2011-02-15 23:43:50 EST
Patch committed on the HEAD (8.0). Thanks again.
Comment 3 CDT Genie CLA 2011-02-16 00:21:46 EST
*** cdt cvs genie on behalf of agvozdev ***
bug 337257: Make target: Files in referenced projects are not saved
Patch from Axel Mueller

[*] TargetBuild.java 1.21 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/TargetBuild.java?root=Tools_Project&r1=1.20&r2=1.21