Skip to content

Commit

Permalink
Skip docs publishing step and suppress the error if no docs found. (A…
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu authored Apr 19, 2022
1 parent c4e5e63 commit 7dfd31f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eng/scripts/Fetch-PackageList-Javadoc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ if ($originalVersion -and $originalVersion.IsPrerelease) {
$packageNameLocation = "$DocRepoLocation/metadata/$metadataMoniker"
New-Item -ItemType Directory -Path $packageNameLocation -Force
Write-Host "The moniker $packageNameLocation"
if (!(Test-Path $jarFile.FullName)) {
LogWarning "Skipping the doc publishing for $($jarFile.FullName) because we cannot find the javadoc jar."
return
}
Fetch-Namespaces-From-Javadoc $jarFile.FullName "$packageNameLocation/$ArtifactName.txt"

0 comments on commit 7dfd31f

Please sign in to comment.