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

[MWRAPPER-111] Trim whitespace when reading from properties file #158

Merged

Conversation

mhalbritter
Copy link
Contributor

JIRA issue: https://issues.apache.org/jira/projects/MWRAPPER/issues/MWRAPPER-111

This PR trims the values read from the property files by removing whitespace such as newlines.

This has already be done in the case of maven-wrapper-distribution/src/resources/only-mvnw, but it's missing from maven-wrapper-distribution/src/resources/mvnw.

With this change, validating the wrapper checksum no longer fails if the property file has CLRF line endings.

@slachiewicz slachiewicz merged commit 6e24460 into apache:master Dec 14, 2024
21 checks passed
@slachiewicz slachiewicz added the enhancement New feature or request label Dec 14, 2024
@mhalbritter mhalbritter deleted the mh/111-sha256-crlf-line-endings branch December 16, 2024 07:50
@mhalbritter
Copy link
Contributor Author

Thanks @slachiewicz !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants