-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlink-jdk-sources.cmd
More file actions
36 lines (30 loc) · 889 Bytes
/
link-jdk-sources.cmd
File metadata and controls
36 lines (30 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@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 BASE_DIR=%~dp0
if "%BASE_DIR%" == "%CD%\" set BASE_DIR=
set apidocs_src=target\reports\apidocs\src
if "%JDK_HOME%" == "" set JDK_HOME=%JAVA_HOME%
if "%JDK_HOME%" == "" (
echo Set JDK_HOME or JAVA_HOME to the JDK home directory
exit /b 2
)
if not exist "%JDK_HOME%\lib\src\" (
if exist "%JDK_HOME%\lib\src.zip" (
echo Unzip "%JDK_HOME%\lib\src.zip" as "%JDK_HOME%\lib\src" directory
exit /b 3
)
echo JDK sources not found: %JDK_HOME%\lib\src\
exit /b 3
)
for %%M in (. xbrz-core xbrz-awt xbrz-tool) do (
mkdir %BASE_DIR%%%M\%apidocs_src%
)
for /d %%D in (%JDK_HOME%\lib\src\*) do (
for %%M in (. xbrz-core xbrz-awt xbrz-tool) do (
mklink /d "%BASE_DIR%%%M\%apidocs_src%\%%~nxD" %%D
)
)