Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335001 - Copying a configuration persists previous exported library path
Summary: Copying a configuration persists previous exported library path
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-21 07:22 EST by James Blackburn CLA
Modified: 2020-09-04 15:16 EDT (History)
2 users (show)

See Also:


Attachments
patch 1 (2.85 KB, patch)
2011-01-21 08:40 EST, James Blackburn CLA
jamesblackburn+eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Blackburn CLA 2011-01-21 07:22:34 EST
A couple of bugs here:

  - Creating a new configuration from an exsiting one, doesn't remove the previous exported library path.  
  - Renaming a project doesn't update the exported settings.

Similar to bug 230165 where the artifact name doens't change when project is renamed. Exported settings are hard-coded to match the current project name and artifact name.  Instead it would be better if they used the ${ConfigName} and ${ProjName} variables as Andrew suggested in bug 328363.  That way the settings should always be in sync with the current configuration.
Comment 1 James Blackburn CLA 2011-01-21 08:40:14 EST
Created attachment 187282 [details]
patch 1

Patch for the first issue.
  - Creating a configuration from an existing configuration resets the exported settings on the new configuration to defaults.

Fixing this issue is hard in the current model.  All exported settings are glommed together in the configuration.  So it's impossible to tell custom, user provided exports, from built-ins (see ICConfigurationDescription#get/setExternalSettings).

Ideally the entire external settings feature should be built on top of the new Scanner Discovery.  Having N different API hooks for each path and symbol is crazy.
Comment 2 James Blackburn CLA 2011-01-21 09:14:56 EST
Same is true for a configuration rename.