This is an automated email from the ASF dual-hosted git repository.
ptupitsyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 5da4dee .NET: Fix build script - exclude optional jars, fix folder
handling
5da4dee is described below
commit 5da4dee6f34a716593e96d0f92482b99658204ea
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Wed Feb 26 22:41:30 2020 +0300
.NET: Fix build script - exclude optional jars, fix folder handling
---
modules/platforms/dotnet/build.ps1 | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/modules/platforms/dotnet/build.ps1
b/modules/platforms/dotnet/build.ps1
index c89d85e..eb22897 100644
--- a/modules/platforms/dotnet/build.ps1
+++ b/modules/platforms/dotnet/build.ps1
@@ -100,7 +100,7 @@ param (
# 0) Functions
function Make-Dir([string]$dirPath) {
New-Item -Path $dirPath -ItemType "directory" -Force
- Remove-Item -Force $dirPath\*.*
+ Remove-Item -Force -Recurse $dirPath\*.*
}
function Exec([string]$command) {
@@ -161,7 +161,8 @@ Make-Dir($libsDir)
Get-ChildItem $jarDirs.Split(',') *.jar -recurse `
-include
"ignite-core*","ignite-indexing*","ignite-shmem*","ignite-spring*","lucene*","h2*","cache-api*","commons-*","spring*"
`
- -exclude "*-sources*","*-javadoc*","*-tests*","*optional*" `
+ -exclude "*-sources*","*-javadoc*","*-tests*" `
+ | ? { $_.FullName -inotmatch '[\\/]optional[\\/]' } `
| % { Copy-Item -Force $_ $libsDir }
# Restore directory
@@ -247,9 +248,11 @@ if ($asmDirs) {
}
if ($projName.StartsWith("Apache.Ignite")) {
- $target = "$projName\bin\Release"
- Make-Dir($target)
- Copy-Item -Force $_ $target
+ $target = [IO.Path]::Combine($projName, "bin", $configuration)
+ New-Item -Path $target -ItemType "directory" -Force
+
+ echo "Copying '$_' to '$target'"
+ Copy-Item -Force $_.FullName $target
}
}
}