You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/04/25 11:50:54 UTC
[13/52] [abbrv] lucenenet git commit: SWEEP: Removed the summary
field from packOptions
SWEEP: Removed the summary field from packOptions
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/e894c620
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/e894c620
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/e894c620
Branch: refs/heads/master
Commit: e894c6209e848b1880d7100d035615336de6b8b2
Parents: ba64fca
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Wed Apr 19 08:59:08 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Wed Apr 19 08:59:08 2017 +0700
----------------------------------------------------------------------
build/build.ps1 | 31 -----------------------
src/Lucene.Net.Analysis.Common/project.json | 1 -
src/Lucene.Net.Analysis.Stempel/project.json | 1 -
src/Lucene.Net.Classification/project.json | 1 -
src/Lucene.Net.Codecs/project.json | 1 -
src/Lucene.Net.Expressions/project.json | 1 -
src/Lucene.Net.Facet/project.json | 1 -
src/Lucene.Net.Grouping/project.json | 1 -
src/Lucene.Net.Highlighter/project.json | 1 -
src/Lucene.Net.Icu/project.json | 1 -
src/Lucene.Net.Join/project.json | 1 -
src/Lucene.Net.Memory/project.json | 1 -
src/Lucene.Net.Misc/project.json | 1 -
src/Lucene.Net.Queries/project.json | 1 -
src/Lucene.Net.QueryParser/project.json | 1 -
src/Lucene.Net.Sandbox/project.json | 1 -
src/Lucene.Net.Spatial/project.json | 1 -
src/Lucene.Net.Suggest/project.json | 1 -
src/Lucene.Net/project.json | 1 -
19 files changed, 49 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index bec2498..d956897 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -92,7 +92,6 @@ task Pack -depends Compile -description "This task creates the NuGet packages" {
$packages = Get-ChildItem -Path "project.json" -Recurse | ? { !$_.Directory.Name.Contains(".Test") }
popd
- Prepare-For-Pack $packages
Pack-Assemblies $packages
$success = $true
@@ -230,36 +229,6 @@ function Build-Assemblies([string[]]$projects) {
}
}
-function Prepare-For-Pack([string[]]$projects) {
- foreach ($project in $projects) {
- Write-Host "Updating project.json for pack: $project" -ForegroundColor DarkYellow
-
- # Update the packOptions.summary with the value from AssemblyDescriptionAttribute
- $assemblyDescription = Get-Assembly-Description $project
- Write-Host "Updating package description with '$assemblyDescription'" -ForegroundColor Yellow
-
- (Get-Content $project) | % {
- $_-replace "(?<=""summary""\s*?:\s*?"")([^""]*)", $assemblyDescription
- } | Set-Content $project -Force
- }
-}
-
-# Gets the description from the AssemblyDescriptionAttribute
-function Get-Assembly-Description($project) {
- #project path has a project.json file, we need the path without it
- $dir = [System.IO.Path]::GetDirectoryName($project).TrimEnd([System.IO.Path]::DirectorySeparatorChar)
- $projectName = [System.IO.Path]::GetFileName($dir)
- $projectAssemblyPath = "$dir\bin\$Configuration\net451\$projectName.dll"
-
- $assembly = [Reflection.Assembly]::ReflectionOnlyLoadFrom($projectAssemblyPath)
- $descriptionAttributes = [reflection.customattributedata]::GetCustomAttributes($assembly) | Where-Object {$_.AttributeType -like "System.Reflection.AssemblyDescriptionAttribute"}
-
- if ($descriptionAttributes.Length -gt 0) {
- $descriptionAttributes[0].ToString()-match "(?<=\[System.Reflection.AssemblyDescriptionAttribute\("")([^""]*)" | Out-Null
- return $Matches[0]
- }
-}
-
function Pack-Assemblies([string[]]$projects) {
Ensure-Directory-Exists $nuget_package_directory
foreach ($project in $projects) {
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Analysis.Common/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/project.json b/src/Lucene.Net.Analysis.Common/project.json
index 18d25b6..f451bad 100644
--- a/src/Lucene.Net.Analysis.Common/project.json
+++ b/src/Lucene.Net.Analysis.Common/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Analysis.Common",
"description": "Analyzers for indexing content in different languages and domains for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Analysis.Stempel/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Stempel/project.json b/src/Lucene.Net.Analysis.Stempel/project.json
index b0543ea..fc09409 100644
--- a/src/Lucene.Net.Analysis.Stempel/project.json
+++ b/src/Lucene.Net.Analysis.Stempel/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Analysis.Stempel",
"description": "Analyzer for indexing Polish for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Classification/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Classification/project.json b/src/Lucene.Net.Classification/project.json
index 7b6200c..3c92ac9 100644
--- a/src/Lucene.Net.Classification/project.json
+++ b/src/Lucene.Net.Classification/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Classification",
"description": "Classification module for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Codecs/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/project.json b/src/Lucene.Net.Codecs/project.json
index 23ec364..e63afac 100644
--- a/src/Lucene.Net.Codecs/project.json
+++ b/src/Lucene.Net.Codecs/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Codecs",
"description": "Specialized codecs and postings formats for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Expressions/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Expressions/project.json b/src/Lucene.Net.Expressions/project.json
index 2d54e0a..fbb70e2 100644
--- a/src/Lucene.Net.Expressions/project.json
+++ b/src/Lucene.Net.Expressions/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Expressions",
"description": "Dynamically computed values to sort/facet/search on based on a pluggable grammar for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Facet/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/project.json b/src/Lucene.Net.Facet/project.json
index a9f923c..a13dbd6 100644
--- a/src/Lucene.Net.Facet/project.json
+++ b/src/Lucene.Net.Facet/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Facet",
"description": "Faceted indexing and search capabilities for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Grouping/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Grouping/project.json b/src/Lucene.Net.Grouping/project.json
index 09b0b18..cd1d1cc 100644
--- a/src/Lucene.Net.Grouping/project.json
+++ b/src/Lucene.Net.Grouping/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Grouping",
"description": "Collectors for grouping search results for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Highlighter/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Highlighter/project.json b/src/Lucene.Net.Highlighter/project.json
index bf2651e..ffaf4fe 100644
--- a/src/Lucene.Net.Highlighter/project.json
+++ b/src/Lucene.Net.Highlighter/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Highlighter",
"description": "Highlights search keywords in results from the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Icu/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Icu/project.json b/src/Lucene.Net.Icu/project.json
index 4dc0a9d..2ffb84b 100644
--- a/src/Lucene.Net.Icu/project.json
+++ b/src/Lucene.Net.Icu/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Icu",
"description": "International Components for Unicode-based features including Thai analyzer support, an international postings highlighter, and BreakIterator support for the vector highlighter for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Join/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Join/project.json b/src/Lucene.Net.Join/project.json
index 26f270d..66aa572 100644
--- a/src/Lucene.Net.Join/project.json
+++ b/src/Lucene.Net.Join/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Join",
"description": "Index-time and Query-time joins for normalized content of the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Memory/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Memory/project.json b/src/Lucene.Net.Memory/project.json
index 41737f6..10bf468 100644
--- a/src/Lucene.Net.Memory/project.json
+++ b/src/Lucene.Net.Memory/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Memory",
"description": "Single-document in-memory index implementation for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Misc/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Misc/project.json b/src/Lucene.Net.Misc/project.json
index 6e6a9c0..17df8fa 100644
--- a/src/Lucene.Net.Misc/project.json
+++ b/src/Lucene.Net.Misc/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Misc",
"description": "Index tools and other miscellaneous functionality for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Queries/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/project.json b/src/Lucene.Net.Queries/project.json
index f0ecd48..dde3622 100644
--- a/src/Lucene.Net.Queries/project.json
+++ b/src/Lucene.Net.Queries/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Queries",
"description": "Extended Filters and Queries for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.QueryParser/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/project.json b/src/Lucene.Net.QueryParser/project.json
index f084f69..adcc9e4 100644
--- a/src/Lucene.Net.QueryParser/project.json
+++ b/src/Lucene.Net.QueryParser/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.QueryParser",
"description": "Query parsers and parsing framework for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Sandbox/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Sandbox/project.json b/src/Lucene.Net.Sandbox/project.json
index 051d518..7249817 100644
--- a/src/Lucene.Net.Sandbox/project.json
+++ b/src/Lucene.Net.Sandbox/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Sandbox",
"description": "Various third party contributions and new ideas extensions for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Spatial/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Spatial/project.json b/src/Lucene.Net.Spatial/project.json
index 20fbcaa..c0a999d 100644
--- a/src/Lucene.Net.Spatial/project.json
+++ b/src/Lucene.Net.Spatial/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Spatial",
"description": "Geospatial search for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net.Suggest/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Suggest/project.json b/src/Lucene.Net.Suggest/project.json
index c5341cb..9cdf1e3 100644
--- a/src/Lucene.Net.Suggest/project.json
+++ b/src/Lucene.Net.Suggest/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net.Suggest",
"description": "Auto-suggest and Spellchecking support for the Lucene.Net full-text search engine library from The Apache Software Foundation.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e894c620/src/Lucene.Net/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/project.json b/src/Lucene.Net/project.json
index bf0a9db..312a1ec 100644
--- a/src/Lucene.Net/project.json
+++ b/src/Lucene.Net/project.json
@@ -3,7 +3,6 @@
"title": "Lucene.Net",
"description": "Lucene.Net is a full-text search engine library capable of advanced text analysis, indexing, and searching. It can be used to easily add search capabilities to applications. Lucene.Net is a C# port of the popular Java Lucene search engine framework from The Apache Software Foundation, targeted at .NET Framework and .NET Core users.",
"packOptions": {
- "summary": "<Added from AssemblyDescriptionAttribute by the build script - do not remove this>",
"licenseUrl": "https://github.com/apache/lucenenet/blob/master/LICENSE.txt",
"iconUrl": "https://github.com/apache/lucenenet/blob/master/branding/logo/lucene-net-icon-128x128.png?raw=true",
"owners": [