Skip to content

Commit

Permalink
Check in link-jdk-sources script enabling jdk-inherited javadocs
Browse files Browse the repository at this point in the history
    mvn clean
    link-jdk-sources
    mvn package -P apidoc javadoc:aggregate-jar -DskipTests
    mvn verify -P release -Dgpg.skip=true

See also:

-   https://docs.oracle.com/en/java/javase/21/docs/specs/javadoc/doc-comment-spec.html#comment-inheritance
-   https://ss64.com/nt/for.html
-   `mklink /?`
  • Loading branch information
stanio committed Nov 29, 2023
1 parent 857dae4 commit 227ab39
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions link-jdk-sources.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@echo off
rem # mvn clean
rem # link-jdk-sources
rem # mvn package -P apidoc javadoc:aggregate-jar -DskipTests
rem # mvn verify -P release -Dgpg.skip=true

setlocal
set apidocs_src=target\apidocs\src
set JDK_HOME=%JAVA_HOME%

for %%M in (. xbrz-core xbrz-awt xbrz-tool) do (
mkdir %%M\%apidocs_src%
)

rem # src.zip needs to be extracted as "src" directory
for /d %%D in (%JDK_HOME%\lib\src\*) do (
for %%M in (. xbrz-core xbrz-awt xbrz-tool) do (
mklink /d %%M\%apidocs_src%\%%~nxD %%D
)
)

0 comments on commit 227ab39

Please sign in to comment.