Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318419 - persistent make targets for existing code (perforce, svn)
Summary: persistent make targets for existing code (perforce, svn)
Status: CLOSED WORKSFORME
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-30 04:06 EDT by Frank Bergemann CLA
Modified: 2010-06-30 05:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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