Skip to content

Commit 009bcf0

Browse files
authored
Move log dirs under repo-projects and rename them (#44149)
1 parent 7cfd4c0 commit 009bcf0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/SourceBuild/content/Directory.Build.props

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,12 @@
171171

172172
<PackageReportDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'prebuilt-report'))</PackageReportDir>
173173
<ResultingPrebuiltPackagesDir>$([MSBuild]::NormalizeDirectory('$(PackageReportDir)', 'prebuilt-packages'))</ResultingPrebuiltPackagesDir>
174-
<DotNetBuildPrebuiltReportDir>$([MSBuild]::NormalizeDirectory('$(PackageReportDir)', '$(MSBuildProjectName)'))</DotNetBuildPrebuiltReportDir>
175174
<SbrpRepoSrcDir>$([MSBuild]::NormalizeDirectory('$(SrcDir)', 'source-build-reference-packages', 'src'))</SbrpRepoSrcDir>
176175
<ReferencePackagesDir>$([MSBuild]::NormalizeDirectory('$(PrereqsPackagesDir)', 'reference'))</ReferencePackagesDir>
177176
<SourceBuiltArtifactsTarballName>Private.SourceBuilt.Artifacts</SourceBuiltArtifactsTarballName>
178177
<SourceBuiltPrebuiltsTarballName>Private.SourceBuilt.Prebuilts</SourceBuiltPrebuiltsTarballName>
179178

180179
<BaselineDataFile>$(ToolsDir)prebuilt-baseline.xml</BaselineDataFile>
181-
182-
<DotNetBuildArtifactsLogDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsLogDir)', '$(MSBuildProjectName)'))</DotNetBuildArtifactsLogDir>
183180
</PropertyGroup>
184181

185182
<!-- Build task assembly paths -->

src/SourceBuild/content/repo-projects/Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848

4949
<!-- Set the bootstrap version to the VMR's version if empty. (no bootstrap set). -->
5050
<ArcadeBootstrapVersion>$([MSBuild]::ValueOrDefault('$(ARCADE_BOOTSTRAP_VERSION)', '$(ArcadeSdkVersion)'))</ArcadeBootstrapVersion>
51+
52+
<ArtifactsLogRepoDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsLogDir)', '$(RepositoryName)'))</ArtifactsLogRepoDir>
53+
<PackageReportRepoDir>$([MSBuild]::NormalizeDirectory('$(PackageReportDir)', '$(RepositoryName)'))</PackageReportRepoDir>
5154
</PropertyGroup>
5255

5356
<PropertyGroup Condition="'$(BuildOS)' == 'windows'">

src/SourceBuild/content/repo-projects/Directory.Build.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<!-- MinimalConsoleLogOutput determines if the repository build should be logged to a separate file or directly to the console.
2929
Enable it by default as with prallel repository builds the log becomes non-readable. -->
30-
<RepoConsoleLogFile>$(DotNetBuildArtifactsLogDir)$(RepositoryName).log</RepoConsoleLogFile>
30+
<RepoConsoleLogFile>$(ArtifactsLogRepoDir)$(RepositoryName).log</RepoConsoleLogFile>
3131
<MinimalConsoleLogOutput Condition="'$(MinimalConsoleLogOutput)' == ''">$(BuildInParallel)</MinimalConsoleLogOutput>
3232

3333
<PackageReportDataFile>$(PackageReportDir)prebuilt-usage.xml</PackageReportDataFile>
@@ -553,12 +553,12 @@
553553

554554
<!-- Move the build logs -->
555555
<Move SourceFiles="@(LogFilesToMove)"
556-
DestinationFolder="$(DotNetBuildArtifactsLogDir)"
556+
DestinationFolder="$(ArtifactsLogRepoDir)"
557557
Condition="'@(LogFilesToMove)' != ''" />
558558

559559
<!-- Move the prebuilt reports -->
560560
<Move SourceFiles="@(PrebuiltReportsToMove)"
561-
DestinationFolder="$(DotNetBuildPrebuiltReportDir)"
561+
DestinationFolder="$(PackageReportRepoDir)"
562562
Condition="'@(PrebuiltReportsToMove)' != ''" />
563563
</Target>
564564

0 commit comments

Comments
 (0)