properties-maven-plugin icon indicating copy to clipboard operation
properties-maven-plugin copied to clipboard

Add the possibility to exclude some keys to write or/and generate (or not) the comment header with the timestamp

Open alexandrenavarro opened this issue 4 years ago • 2 comments

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.

alexandrenavarro avatar Dec 05 '20 11:12 alexandrenavarro

Any news?

alexandrenavarro avatar Jan 10 '21 18:01 alexandrenavarro

hi, could you review recent changes (ie rebase on master) and adjust your proposal ?

slachiewicz avatar Apr 23 '22 16:04 slachiewicz