You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/07/11 07:42:39 UTC

[14/22] lucenenet git commit: build\build.ps1: Fixed build script so the restore and pack tasks ignore lucene-cli

build\build.ps1: Fixed build script so the restore and pack tasks ignore lucene-cli


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

Branch: refs/heads/master
Commit: 71d82b673d0abde51ac3a6f45eeccd9ab7d7e3db
Parents: 38187d7
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Jul 11 11:05:01 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Jul 11 11:05:01 2017 +0700

----------------------------------------------------------------------
 build/build.ps1 | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/71d82b67/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index 312ec01..578c216 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -101,8 +101,12 @@ task Init -depends InstallSDK -description "This task makes sure the build envir
 }
 
 task Restore -description "This task restores the dependencies" {
-	Exec {
-		& dotnet.exe restore $base_directory
+	pushd $base_directory
+		$packages = Get-ChildItem -Path "project.json" -Recurse | ? { !$_.Directory.Name.Contains(".Cli") -and !$_.Directory.Name.Contains("lucene-cli") }
+	popd
+
+	foreach ($package in $packages) {
+		Exec { & dotnet.exe restore $package }
 	}
 }
 
@@ -132,7 +136,12 @@ task Compile -depends Clean, Init -description "This task compiles the solution"
 task Pack -depends Compile -description "This task creates the NuGet packages" {
 	try {
 		pushd $base_directory
-		$packages = Get-ChildItem -Path "project.json" -Recurse | ? { !$_.Directory.Name.Contains(".Test") -and !$_.Directory.Name.Contains(".Demo") }
+		$packages = Get-ChildItem -Path "project.json" -Recurse | ? { 
+			!$_.Directory.Name.Contains(".Test") -and 
+			!$_.Directory.Name.Contains(".Demo") -and 
+			!$_.Directory.Name.Contains(".Cli") -and 
+			!$_.Directory.Name.Contains("lucene-cli")
+		}
 		popd
 
 		Pack-Assemblies $packages