Skip to content

Conversation

@marko-bekhta
Copy link

Add support for the "--add-script" argument of the javadoc tool: https://docs.oracle.com/en/java/javase/18/docs/specs/man/javadoc.html

this one follows the approach taken for the additional stylesheets and adds the same functionality for the additional scripts.

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Your pull request should address just one issue, without pulling in other changes.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body.
    Note that commits might be squashed by a maintainer on merge.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied.
    This may not always be possible but is a best-practice.
  • Run mvn verify to make sure basic checks pass.
    A more thorough check will be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its verify).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

@olamy olamy added the enhancement New feature or request label Oct 28, 2025
Copy link
Member

@olamy olamy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. I have added a couple of comments.

# specific language governing permissions and limitations
# under the License.

invoker.goals=compile javadoc:javadoc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if available only since jdk 18, you need add something such

invoker.java.version = 18+

return;
}

for (String addScript : addScripts) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe check if the jdk is at least 18, if not throw a proper error message

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey 👋🏻 , thanks for having a look and for the suggestions!
I'll try to address these soon 🙂.

Copy link
Author

@marko-bekhta marko-bekhta Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addArgIfNotEmpty( had that check to produce a warning, but as you've suggested... I added a check and exception just above ^.
thanks 🙂

@marko-bekhta marko-bekhta force-pushed the feat/add-add-script-option branch from 3d26e03 to 68c8835 Compare November 10, 2025 08:35
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