Skip to content

Add support for merging user settings with plugin default#472

Open
GollapudiSrikanth wants to merge 1 commit intospring-io:mainfrom
GollapudiSrikanth:srikanthgollapudi-allow-eclipse-project-specifics-settings-merged
Open

Add support for merging user settings with plugin default#472
GollapudiSrikanth wants to merge 1 commit intospring-io:mainfrom
GollapudiSrikanth:srikanthgollapudi-allow-eclipse-project-specifics-settings-merged

Conversation

@GollapudiSrikanth
Copy link
Copy Markdown

This PR adds 'mergedWith()' method to 'ProjectSettingsFile' that merges user-provided settings on top of the plugin's defaults. When a user file matches a default file by name, the properties are merged - with user values overriding defaults - rather than replacing the entire file

##Changes

  • Added mergedWith(ProjectSettingsFile overlay) method to ProjectSettingFile that loads both base and overlay as Properties, merges them, and returns a new ProjectSettingsFile with the combined content
  • Updated ProjectSettingsFilesLocator to merge user settings files with matching default files instead of replacing them
  • Added tests for the merge behaviour

Closes #444
image

Signed-off-by: Venkata Naga Sai Srikanth Gollapudi <42247688+GollapudiSrikanth@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow Eclipse project-specific settings to be merged

1 participant