-
Notifications
You must be signed in to change notification settings - Fork 134
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
[MRELEASE-1107] Respect line separator also on release:prepare #154
Conversation
Can you please create a JIRA issue for this? Can you also describe when you experienced this? |
Issue is opened: https://issues.apache.org/jira/browse/MRELEASE-1107 ... and I experienced it when using release:prepare. The configured linefeeds were not respected. And after looking at the source code, the problem was clear. |
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.
Do you see a reasonable way to test this also like MRELEASE-899?
maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
Outdated
Show resolved
Hide resolved
maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
Outdated
Show resolved
Hide resolved
980a766
to
a0e2a16
Compare
Alright I fixed the code. I simply tried to repair the unit tests that were broken with my changes instead of fixing it within the maincode which was indeed bad style. Sorry for that. |
There are actually already tests for this purpose. But only if you insist I can check if additional tests should be added. |
Can you point me which those are? I am on a short leash this week. |
|
I saw the test was for prepare-with-poms only. I added an additional test for release:prepare |
maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
Outdated
Show resolved
Hide resolved
78f54d2
to
c3d0d53
Compare
The line separator config should also be used on
mvn release:prepare
and not just onmvn release:prepare-with-pom