ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [35/47] ignite git commit: IGNITE-2662 .NET: add version override to build script
Date Tue, 21 Nov 2017 12:10:29 GMT
IGNITE-2662 .NET: add version override to build script


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

Branch: refs/heads/ignite-zk
Commit: dee8b400a6ce4f9d7f9a08b7aa3243ce2afc82b3
Parents: 8ee6cb5
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Fri Nov 17 17:02:44 2017 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Fri Nov 17 17:02:44 2017 +0300

----------------------------------------------------------------------
 modules/platforms/dotnet/build.ps1 | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/dee8b400/modules/platforms/dotnet/build.ps1
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/build.ps1 b/modules/platforms/dotnet/build.ps1
index c037574..7ff7278 100644
--- a/modules/platforms/dotnet/build.ps1
+++ b/modules/platforms/dotnet/build.ps1
@@ -63,6 +63,9 @@ Java jar files source folders, default is "modules\indexing\target,modules\core\
 .PARAMETER nugetPath
 Path to nuget.exe.
 
+.PARAMETER version
+NuGet version override (normally inferred from assembly version).
+
 .EXAMPLE
 .\build.ps1 -clean  
 # Full rebuild of Java, .NET and NuGet packages.
@@ -86,7 +89,8 @@ param (
     [string]$mavenOpts="-U -P-lgpl,-scala,-examples,-test,-benchmarks -Dmaven.javadoc.skip=true",
 	[string]$jarDirs="modules\indexing\target,modules\core\target,modules\spring\target",
     [string]$asmDirs="",
-    [string]$nugetPath=""
+    [string]$nugetPath="",
+	[string]$version=""
  )
 
 # 1) Build Java (Maven)
@@ -133,7 +137,7 @@ else {
 }
 
 # Copy (relevant) jars
-$libsDir = "$PSScriptRoot\bin\Libs"
+$libsDir = "$PSScriptRoot\bin\libs"
 mkdir -Force $libsDir; del -Force $libsDir\*.*
 
 ls $jarDirs.Split(',') *.jar -recurse `
@@ -237,7 +241,7 @@ if (!$skipNuGet) {
     mkdir -Force $nupkgDir; del -Force $nupkgDir\*.*
 
     # Detect version
-    $ver = (gi Apache.Ignite.Core\bin\Release\Apache.Ignite.Core.dll).VersionInfo.ProductVersion
+    $ver = if ($version) { $version } else { (gi Apache.Ignite.Core\bin\Release\Apache.Ignite.Core.dll).VersionInfo.ProductVersion
}
 
     # Find all nuspec files and run 'nuget pack' either directly, or on corresponding csproj
files (if present)
     ls *.nuspec -Recurse  `


Mime
View raw message