You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2015/12/03 14:09:21 UTC

[06/22] ignite git commit: wip

wip


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

Branch: refs/heads/ignite-1626
Commit: 5d2a7c5fd8a162add23f156206d0369763c56cd1
Parents: 2a13da3
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Thu Nov 12 16:34:03 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Thu Nov 12 16:34:03 2015 +0300

----------------------------------------------------------------------
 modules/platforms/dotnet/Apache.Ignite.nuspec   | 29 +++++++++++++++++---
 .../dotnet/Apache.Ignite.nuspec.Install.ps1     | 26 ++++++++++++++++++
 modules/platforms/dotnet/Apache.Ignite.sln      |  1 +
 3 files changed, 52 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/5d2a7c5f/modules/platforms/dotnet/Apache.Ignite.nuspec
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.nuspec b/modules/platforms/dotnet/Apache.Ignite.nuspec
index 9f16132..9e95887 100644
--- a/modules/platforms/dotnet/Apache.Ignite.nuspec
+++ b/modules/platforms/dotnet/Apache.Ignite.nuspec
@@ -1,4 +1,22 @@
 <?xml version="1.0"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
 <package >
     <metadata>
         <id>Apache.Ignite.NET</id>
@@ -25,11 +43,14 @@
         <!-- Dlls should go to lib folder to be referenced. Optionally, framework subfolder should be used. -->
         <file src="Apache.Ignite.Core\bin\x64\Release\Apache.Ignite.Core.dll" target="lib\net40" />
         
+        <!-- Install script should be in tools -->
+        <file src="Apache.Ignite.nuspec.Install.ps1" target="tools\Install.ps1" />
+        
         <!-- Other files should go to Content folder to be automatically included in project. -->
-        <file src="..\..\..\config\default-config.xml" target="Content\config" />
+        <file src="..\..\..\config\default-config.xml" target="Content\Config" />
         
-        <file src="..\..\..\target\release-package\libs\*.jar" target="Content\libs" />
-        <file src="..\..\..\target\release-package\libs\ignite-spring\*.jar" target="Content\libs" />
-        <file src="..\..\..\target\release-package\libs\ignite-indexing\*.jar" target="Content\libs" />
+        <file src="..\..\..\target\release-package\libs\*.jar" target="Content\Libs" />
+        <file src="..\..\..\target\release-package\libs\ignite-spring\*.jar" target="Content\Libs" />
+        <file src="..\..\..\target\release-package\libs\ignite-indexing\*.jar" target="Content\Libs" />
     </files>
 </package>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/5d2a7c5f/modules/platforms/dotnet/Apache.Ignite.nuspec.Install.ps1
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.nuspec.Install.ps1 b/modules/platforms/dotnet/Apache.Ignite.nuspec.Install.ps1
new file mode 100644
index 0000000..52f47f9
--- /dev/null
+++ b/modules/platforms/dotnet/Apache.Ignite.nuspec.Install.ps1
@@ -0,0 +1,26 @@
+#    Licensed under the Apache License, Version 2.0 (the "License");
+#    you may not use this file except in compliance with the License.
+#    You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+
+param($installPath, $toolsPath, $package, $project)
+
+$configItem = $project.ProjectItems.Item("NLog.config")
+
+# set 'Copy To Output Directory' to 'Copy if newer'
+$copyToOutput = $configItem.Properties.Item("CopyToOutputDirectory")
+
+# Copy Always Always copyToOutput.Value = 1
+# Copy if Newer copyToOutput.Value = 2  
+$copyToOutput.Value = 2
+
+# set 'Build Action' to 'Content'
+$buildAction = $configItem.Properties.Item("BuildAction")
+$buildAction.Value = 2
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/5d2a7c5f/modules/platforms/dotnet/Apache.Ignite.sln
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.sln b/modules/platforms/dotnet/Apache.Ignite.sln
index 39413d1..70ae184 100644
--- a/modules/platforms/dotnet/Apache.Ignite.sln
+++ b/modules/platforms/dotnet/Apache.Ignite.sln
@@ -26,6 +26,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
 	ProjectSection(SolutionItems) = preProject
 		Apache.Ignite.FxCop = Apache.Ignite.FxCop
 		Apache.Ignite.nuspec = Apache.Ignite.nuspec
+		Apache.Ignite.nuspec.Install.ps1 = Apache.Ignite.nuspec.Install.ps1
 		Apache.Ignite.sln.DotSettings = Apache.Ignite.sln.DotSettings
 		examples\Config\example-cache-query.xml = examples\Config\example-cache-query.xml
 		examples\Config\example-cache-store.xml = examples\Config\example-cache-store.xml