[mapguide-commits] r10206 - branches/4.0/MgDev/Doc

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sat Mar 14 05:27:16 PDT 2026


Author: jng
Date: 2026-03-14 05:27:15 -0700 (Sat, 14 Mar 2026)
New Revision: 10206

Modified:
   branches/4.0/MgDev/Doc/build.bat
Log:
Fix javadoc detection

Modified: branches/4.0/MgDev/Doc/build.bat
===================================================================
--- branches/4.0/MgDev/Doc/build.bat	2026-03-14 10:57:53 UTC (rev 10205)
+++ branches/4.0/MgDev/Doc/build.bat	2026-03-14 12:27:15 UTC (rev 10206)
@@ -1,6 +1,6 @@
 @echo off
 REM TODO: Move to setenviroment64.bat once this is fully fleshed out
-SET LABEL=4.0 RC1
+SET LABEL=4.0
 pushd dotnet_api
 docfx metadata
 docfx build --metadata _appTitle="MapGuide .net API reference (%LABEL%)"
@@ -10,7 +10,19 @@
 REM for the affected classes will still be generated, these errors are mostly about malformed tags that are a by-product
 REM of being transferred from the C++ doxygen fragments
 REM TODO: These errors will go away by fixing the comments in question at the C++ source
-javadoc -d ..\..\..\..\Doc\landing\_site\java_api org.osgeo.mapguide -overview ..\..\..\..\Doc\java_api\overview.html -windowtitle "MapGuide Java API reference (%LABEL%)"
+set "JAVADOC_EXE="
+where javadoc >nul 2>nul
+if not errorlevel 1 (
+	set "JAVADOC_EXE=javadoc"
+) else if defined JAVA_HOME if exist "%JAVA_HOME%\bin\javadoc.exe" (
+	set "JAVADOC_EXE=%JAVA_HOME%\bin\javadoc.exe"
+)
+
+if defined JAVADOC_EXE (
+	"%JAVADOC_EXE%" -d ..\..\..\..\Doc\landing\_site\java_api org.osgeo.mapguide -overview ..\..\..\..\Doc\java_api\overview.html -windowtitle "MapGuide Java API reference (%LABEL%)"
+) else (
+	echo WARNING: javadoc not found in PATH or JAVA_HOME. Skipping Java API documentation generation.
+)
 popd
 pushd mdpreprocess
 dotnet run -- ..\landing\topics



More information about the mapguide-commits mailing list