lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [18/52] [abbrv] lucenenet git commit: build\build.ps1: Uncommented compile and pack tasks
Date Tue, 25 Apr 2017 11:50:59 GMT
build\build.ps1: Uncommented compile and pack tasks


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

Branch: refs/heads/master
Commit: 29a249b786e86da6312861861013e365cfeacb24
Parents: 9094afa
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Apr 19 23:34:16 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Apr 19 23:34:16 2017 +0700

----------------------------------------------------------------------
 build/build.ps1 | 56 ++++++++++++++++++++++++++--------------------------
 1 file changed, 28 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/29a249b7/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index 1dcd496..70e09c0 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -106,41 +106,41 @@ task Init -description "This task makes sure the build environment is
correctly
 }
 
 task Compile -depends Clean, Init -description "This task compiles the solution" {
-	#try {
-	#	pushd $base_directory
-	#	$projects = Get-ChildItem -Path "project.json" -Recurse
-	#	popd
+	try {
+		pushd $base_directory
+		$projects = Get-ChildItem -Path "project.json" -Recurse
+		popd
 
-	#	Backup-Files $projects
-	#	Prepare-For-Build $projects
-	#	& dotnet.exe restore $base_directory
+		Backup-Files $projects
+		Prepare-For-Build $projects
+		& dotnet.exe restore $base_directory
 
-	#	Build-Assemblies $projects
+		Build-Assemblies $projects
 
-	#	Start-Sleep 10
+		Start-Sleep 10
 
-	#	$success = $true
-	#} finally {
-	#	if ($success -ne $true) {
-	#		Restore-Files $backedUpFiles
-	#	}
-	#}
+		$success = $true
+	} finally {
+		if ($success -ne $true) {
+			Restore-Files $backedUpFiles
+		}
+	}
 }
 
 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")
}
-	#	popd
-
-	#	Pack-Assemblies $packages
-
-	#	$success = $true
-	#} finally {
-	#	#if ($success -ne $true) {
-	#		Restore-Files $backedUpFiles
-	#	#}
-	#}
+	try {
+		pushd $base_directory
+		$packages = Get-ChildItem -Path "project.json" -Recurse | ? { !$_.Directory.Name.Contains(".Test")
}
+		popd
+
+		Pack-Assemblies $packages
+
+		$success = $true
+	} finally {
+		#if ($success -ne $true) {
+			Restore-Files $backedUpFiles
+		#}
+	}
 }
 
 task Test -description "This task runs the tests" {


Mime
View raw message