Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider a properties file transformer #73

Closed
aalmiray opened this issue Jul 16, 2014 · 3 comments
Closed

Consider a properties file transformer #73

aalmiray opened this issue Jul 16, 2014 · 3 comments
Milestone

Comments

@aalmiray
Copy link
Contributor

The basic idea is to allow merging of key values given a set of strategies, for example:

  • first: duplicate keys in the first resource read are retained, later keys are discarded
  • latest: the opposite of first.
  • append: matching key values are concatenated using a separator (configurable)

An example of such transformer can be seen at https://github.com/griffon/griffon/blob/development/subprojects/gradle-griffon-plugin/src/main/groovy/org/codehaus/griffon/gradle/shadow/transformers/PropertiesFileTransformer.groovy

@johnrengelman
Copy link
Collaborator

I like the idea. Want to submit a PR?

@aalmiray
Copy link
Contributor Author

Done. Ready for your perusal at #74 😄

johnrengelman added a commit that referenced this issue Jul 16, 2014
Add a PropertiesFileTransformer as suggested in #73
@johnrengelman
Copy link
Collaborator

Closed after merging PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants