-
Couldn't load subscription status.
- Fork 103
Remove Javadoc 1.4+ / -1.1 switch related warning #1240
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
Conversation
This commit reverts the behavior introduced in d3fbbda, after which a warning about the `-1.1` switch appears unconditionally. The warning, "Javadoc 1.4+ doesn't support the -1.1 switch anymore. Ignore this option." now only displays if the `old` parameter is set to true, as it did previously.
| can you please provide an IT test for this as I'm not really sure to understand the problem. |
| Sure! Here it is: it.zip. Compare with In case of 3.11.3 you will get:
The warning shouldn't be displayed when |
Signed-off-by: Olivier Lamy <olamy@apache.org>
| Thanks. |
| Could we add another test? This one would check if assert log.count(...) == 1 passes for old = true. The existing test will pass not only when there is no warning, but also if the warning is displayed with slightly different wording. If the message is altered in the future, this test won't be a reliable check. |
sure feel free to add more tests and let me know when you're done then I will merge the PR |
| It seems that this would require a completely new integration test (with a separate |
sure go for it. maybe just create a new IT as you can see it's very easy :) |
| Ok, I'll clean up MJAVADOC-770 and add 2 |
src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java Outdated Show resolved Hide resolved
| Please do squash the first 4 commits when merging (hopefully). I didn't want to force-push to avoid disrupting your review of the PR. |
| @perceptron8 Thanks. I'm waiting for all CI builds to pass then will merge it. |
This reverts commit c3803c8, as it issues a new warning as detailed in apache/maven-javadoc-plugin#1240. Change-Id: I8a6962674644532304dedf12292e0d8b814baf62 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
This commit reverts the behavior introduced in d3fbbda, after which a warning about the
-1.1switch appears unconditionally. The warning, "Javadoc 1.4+ doesn't support the -1.1 switch anymore. Ignore this option." now only displays if theoldparameter is set to true, as it did previously.