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

Bug 318419

Summary: persistent make targets for existing code (perforce, svn)
Product: [Tools] CDT Reporter: Frank Bergemann <FBergemann>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: CLOSED WORKSFORME QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: jamesblackburn+eclipse
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Frank Bergemann CLA 2010-06-30 04:06:19 EDT
Build Identifier: 20100617-1415

i added make targets, which have been saved in .cproject. But trying to re-use these settings by adding .cproject to perforce (or svn) doesn't work. When i create a new project as "Makefile project with existing code" it overwrites the .project and doesn't re-use the existing one. I guess it is already a problem, that i have to set the Team/Share Project settings later. So for creating the project CDT doesn't even know, that i want to use a persistent version from the depot. Another issue seems to be <cconfiguration id="<xxx>">, which changes.


Reproducible: Always

Steps to Reproduce:
1. have a project sources sync'd from perforce (or svn)
2. create "Makefile project with existing code"
3. add your make targets manually
4. add .cproject to perforce (or svn)
5. delete project (with sources)
6. sync sources again from perforce (or svn)
7. again create "Makefile project with existing code"
8. make targets are not available ?!
Comment 1 James Blackburn CLA 2010-06-30 05:03:21 EDT
At step 7 you are explicitly over-writing the project metadata files when you re-create the project.

You need to import the project instead:
File > Import > Existing Projects into workspace
Comment 2 Frank Bergemann CLA 2010-06-30 05:59:55 EDT
Hi James,
yes, that works
- many thanks!
best regards,
Frank