ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ptupit...@apache.org
Subject ignite git commit: IGNITE-4297 .NET: Update NuGet scripts to clean up jars in bin folder
Date Thu, 24 Nov 2016 13:34:23 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-1.8 d5dc58154 -> c4badeef8


IGNITE-4297 .NET: Update NuGet scripts to clean up jars in bin folder


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

Branch: refs/heads/ignite-1.8
Commit: c4badeef809851c1ab890e2d6358834f698e94ad
Parents: d5dc581
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Thu Nov 24 16:32:02 2016 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Thu Nov 24 16:33:45 2016 +0300

----------------------------------------------------------------------
 .../dotnet/Apache.Ignite.Core/NuGet/Install.ps1       | 14 ++++++++++++++
 .../dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1     | 14 ++++++++++++++
 2 files changed, 28 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/c4badeef/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Install.ps1
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Install.ps1 b/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Install.ps1
index d4e97bb..e7cdad4 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Install.ps1
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Install.ps1
@@ -24,4 +24,18 @@ if (!$currentPostBuildCmd.Contains($IgnitePostBuildCmd)) {
     $project.Properties.Item("PostBuildEvent").Value += $IgnitePostBuildCmd
 }
 
+# Save
+$project.Save()
+
+# Remove bin\Libs folders with old jars
+$project.ConfigurationManager | % { 
+    $projPath = $project.Properties.Item("FullPath").Value
+    $binDir = ($_.Properties | Where Name -match OutputPath).Value
+
+    $binPath = Join-Path $projPath $binDir
+    $libsPath = Join-Path $binPath "Libs"
+
+    Remove-Item -Force -Recurse -ErrorAction SilentlyContinue $libsPath
+}
+
 Write-Host "Welcome to Apache Ignite.NET!"
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/c4badeef/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1 b/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1
index f81f41c..634c78e 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/NuGet/Uninstall.ps1
@@ -19,3 +19,17 @@ $currentPostBuildCmd = $project.Properties.Item("PostBuildEvent").Value
 
 # Remove our post build command from it (if it's there)
 $project.Properties.Item("PostBuildEvent").Value = $currentPostBuildCmd.Replace($IgnitePostBuildCmd,
"")
+
+# Save
+$project.Save()
+
+# Remove bin\Libs folders with jars
+$project.ConfigurationManager | % { 
+    $projPath = $project.Properties.Item("FullPath").Value
+    $binDir = ($_.Properties | Where Name -match OutputPath).Value
+
+    $binPath = Join-Path $projPath $binDir
+    $libsPath = Join-Path $binPath "Libs"
+
+    Remove-Item -Force -Recurse -ErrorAction SilentlyContinue $libsPath
+}
\ No newline at end of file


Mime
View raw message