Skip to content

Commit

Permalink
Update Language Settings (#14842)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Sep 9, 2020
1 parent 1ea7f17 commit ac8715d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ function Get-java-PackageInfoFromPackageFile ($pkg, $workingDirectory) {
function Publish-java-GithubIODocs ()
{
$PublishedDocs = Get-ChildItem "$DocLocation" | Where-Object -FilterScript {$_.Name.EndsWith("-javadoc.jar")}
foreach ($Item in $PublishedDocs)
foreach ($Item in $PublishedDocs)
{
$UnjarredDocumentationPath = ""
try
try
{
$PkgName = $Item.BaseName
# The jar's unpacking command doesn't allow specifying a target directory
Expand Down Expand Up @@ -136,14 +136,15 @@ function Publish-java-GithubIODocs ()
Write-Host "DocDir $($UnjarredDocumentationPath)"
Write-Host "PkgName $($ArtifactId)"
Write-Host "DocVersion $($Version)"
$releaseTag = RetrieveReleaseTag "Maven" $PublicArtifactLocation
Upload-Blobs -DocDir $UnjarredDocumentationPath -PkgName $ArtifactId -DocVersion $Version -ReleaseTag $releaseTag

Upload-Blobs -DocDir $UnjarredDocumentationPath -PkgName $ArtifactId -DocVersion $Version
}
Finally
}
Finally
{
if (![string]::IsNullOrEmpty($UnjarredDocumentationPath))
if (![string]::IsNullOrEmpty($UnjarredDocumentationPath))
{
if (Test-Path -Path $UnjarredDocumentationPath)
if (Test-Path -Path $UnjarredDocumentationPath)
{
Write-Host "Cleaning up $UnjarredDocumentationPath"
Remove-Item -Recurse -Force $UnjarredDocumentationPath
Expand Down

0 comments on commit ac8715d

Please sign in to comment.