Add the possibility to exclude some keys to write or/and generate (or not) the comment header with the timestamp #57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add the possibility to exclude some keys to write and generate (or not) the comment header with the timestamp.
I need to generate properties file but without some property keys (notably the generated based on random value or timestamp value or environment based) and need not to have the timestamp of the generation of the properties.
It permits have exactly the same properties file in order not to have some conflicts based on these generated properties.
I added the exclusionRegex parameter (not required) to exclude some keys.
I added the generateCommentHeader parameter (not required, defauted to true) to remove the comment header (or not).
If you don't set the 2 parameters, the generation of the properties file is back-compatible.
Don't hesitate if you have any comment on the pull-request.