|
|
@@ -14,7 +14,7 @@ $ErrorActionPreference = "Stop"
|
|
|
|
|
|
Import-Module -Name (Join-Path $PSScriptRoot 'native\CommonLibrary.psm1')
|
|
|
|
|
|
-$exclusionsFilePath = "$SourcesDirectory\Localize\LocExclusions.json"
|
|
|
+$exclusionsFilePath = "$SourcesDirectory\eng\Localize\LocExclusions.json"
|
|
|
$exclusions = @{ Exclusions = @() }
|
|
|
if (Test-Path -Path $exclusionsFilePath)
|
|
|
{
|
|
|
@@ -92,14 +92,14 @@ Write-Host "LocProject.json generated:`n`n$json`n`n"
|
|
|
Pop-Location
|
|
|
|
|
|
if (!$UseCheckedInLocProjectJson) {
|
|
|
- New-Item "$SourcesDirectory\Localize\LocProject.json" -Force # Need this to make sure the Localize directory is created
|
|
|
- Set-Content "$SourcesDirectory\Localize\LocProject.json" $json
|
|
|
+ New-Item "$SourcesDirectory\eng\Localize\LocProject.json" -Force # Need this to make sure the Localize directory is created
|
|
|
+ Set-Content "$SourcesDirectory\eng\Localize\LocProject.json" $json
|
|
|
}
|
|
|
else {
|
|
|
- New-Item "$SourcesDirectory\Localize\LocProject-generated.json" -Force # Need this to make sure the Localize directory is created
|
|
|
- Set-Content "$SourcesDirectory\Localize\LocProject-generated.json" $json
|
|
|
+ New-Item "$SourcesDirectory\eng\Localize\LocProject-generated.json" -Force # Need this to make sure the Localize directory is created
|
|
|
+ Set-Content "$SourcesDirectory\eng\Localize\LocProject-generated.json" $json
|
|
|
|
|
|
- if ((Get-FileHash "$SourcesDirectory\Localize\LocProject-generated.json").Hash -ne (Get-FileHash "$SourcesDirectory\Localize\LocProject.json").Hash) {
|
|
|
+ if ((Get-FileHash "$SourcesDirectory\eng\Localize\LocProject-generated.json").Hash -ne (Get-FileHash "$SourcesDirectory\eng\Localize\LocProject.json").Hash) {
|
|
|
Write-PipelineTelemetryError -Category "OneLocBuild" -Message "Existing LocProject.json differs from generated LocProject.json. Download LocProject-generated.json and compare them."
|
|
|
|
|
|
exit 1
|