.NET: add version override to build script
@@ -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 `
