lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject lucenenet git commit: build\build.ps1: Enable XML documentation generation during build
Date Mon, 24 Apr 2017 09:48:02 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/api-work 908892094 -> 7733f863b


build\build.ps1: Enable XML documentation generation during build


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/7733f863
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/7733f863
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/7733f863

Branch: refs/heads/api-work
Commit: 7733f863b76a0bfb5147b57e3f4fb3649f44800f
Parents: 9088920
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Apr 24 16:44:47 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Mon Apr 24 16:44:47 2017 +0700

----------------------------------------------------------------------
 build/build.ps1 | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7733f863/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index e45c679..4574d59 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -69,6 +69,7 @@ task Compile -depends Clean, Init -description "This task compiles the solution"
 
 		Backup-Files $projects
 		Prepare-For-Build $projects
+
 		Exec {
 			& dotnet.exe restore $base_directory
 		}
@@ -222,6 +223,13 @@ function Prepare-For-Build([string[]]$projects) {
 
 		$json = (Get-Content $project -Raw) | ConvertFrom-Json
 		$json.version = $PackageVersion
+		if (!$project.Contains("Test")) {
+			if ($json.buildOptions.xmlDoc -eq $null) {
+				$json.buildOptions | Add-Member -Name "xmlDoc" -Value true -MemberType NoteProperty
+			} else {
+				$json.buildOptions | % {$_.xmlDoc = true}
+			}
+		}
 		$json | ConvertTo-Json -depth 100 | Out-File $project -encoding UTF8 -Force
 	}
 }


Mime
View raw message