This repository was archived by the owner on Aug 1, 2024. It is now read-only.
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.
Fix for PropertiesFileTransformer breaks Reproducible builds in 8.1.1 #102
Fix for PropertiesFileTransformer breaks Reproducible builds in 8.1.1 #102
Changes from 3 commits
fbcd41e
a7ef65b
eac5748
57c7895
9d7d97e
666b57c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
Date
is related to your locale, how can we make sure the device locale is matched with the jar locale?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea of this is to just remove the comment lines which include the timestamp, which is generated when the properties file is written, so I assume locale is the same. Timestamp is not coming from other jar files. Either way I agree is a bit tricky.
Another option could be try to parse the date to see if it's a date or not, or maybe keep it simple and strip all comment lines.
Probably these changes are a mitigation as the real solution should come from the component writing the properties file, but anyway is more solid than the previous one which was removing only the first line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, seems the fix is solid.
In this case, seems we still have to determine the real locale is.