Integrated: 8331886: Allow markdown src file overrides

Erik Joelsson erikj at openjdk.org
Wed May 8 22:00:57 UTC 2024


On Wed, 8 May 2024 01:02:41 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

> For c, c++  and java source files, we have a built in system for letting more specific files override if there are multiple files with the same name found, by letting the first found file with a given name override any later found files with that name. This is typically used for OS specific variants or when needing to override a source file with a file from a custom source set. We would like to make it possible to do the same for markdown files used to generate man pages.
> 
> This will not have an immediate use i OpenJDK, but is needed for a custom override in proprietary code.
> 
> The change in Docs.gmk removes unnecessary extra loops so that SetupProcessMarkdown is called only once per module. This is necessary for the override mechanism to kick in for each module src set.
> 
> The logic in ProcessMarkdown.gmk is more or less copied from SetupNativeCompilation.

This pull request has now been integrated.

Changeset: 588e314e
Author:    Erik Joelsson <erikj at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/588e314e4b96f2a48d46ab8a088a7b8d26be318d
Stats:     75 lines in 2 files changed: 14 ins; 11 del; 50 mod

8331886: Allow markdown src file overrides

Reviewed-by: ihse

-------------

PR: https://git.openjdk.org/jdk/pull/19132


More information about the build-dev mailing list