lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [5/5] lucenenet git commit: BUG: Lucene.Net.Tests.QueryParser: Fixed TestParser resource files for .NET Core
Date Sat, 11 Mar 2017 06:04:00 GMT
BUG: Lucene.Net.Tests.QueryParser: Fixed TestParser resource files for .NET Core


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

Branch: refs/heads/api-work
Commit: 7c282a4917054f0b6a04add5690d7b15fdbd9a85
Parents: 6864d4a
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Mar 11 11:43:05 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Mar 11 13:03:34 2017 +0700

----------------------------------------------------------------------
 .../Xml/TestParser.cs                           |  7 ++++-
 src/Lucene.Net.Tests.QueryParser/project.json   | 32 ++++++++++++++++++++
 2 files changed, 38 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7c282a49/src/Lucene.Net.Tests.QueryParser/Xml/TestParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Xml/TestParser.cs b/src/Lucene.Net.Tests.QueryParser/Xml/TestParser.cs
index 6aae1a4..80d0ee5 100644
--- a/src/Lucene.Net.Tests.QueryParser/Xml/TestParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Xml/TestParser.cs
@@ -31,7 +31,12 @@ namespace Lucene.Net.QueryParsers.Xml
 
     public class TestParser : LuceneTestCase
     {
-        internal const string RESOURCE_PATH = "Lucene.Net.QueryParsers.Xml.";
+        internal const string RESOURCE_PATH =
+#if NETSTANDARD
+            "Lucene.Net.Tests.QueryParser.Xml.";
+#else
+            "Lucene.Net.QueryParsers.Xml.";
+#endif
 
         private static CoreParser builder;
         private static Store.Directory dir;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7c282a49/src/Lucene.Net.Tests.QueryParser/project.json
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/project.json b/src/Lucene.Net.Tests.QueryParser/project.json
index b2ff80a..b786d58 100644
--- a/src/Lucene.Net.Tests.QueryParser/project.json
+++ b/src/Lucene.Net.Tests.QueryParser/project.json
@@ -9,6 +9,37 @@
   },
 
   "testRunner": "nunit",
+  "buildOptions": {
+    "embed": {
+      "includeFiles": [
+        "Xml/albumBooleanQuery.xsl",
+        "Xml/albumFilteredQuery.xsl",
+        "Xml/albumLuceneClassicQuery.xsl",
+        "Xml/BooleanFilter.xml",
+        "Xml/BooleanQuery.xml",
+        "Xml/BoostingQuery.xml",
+        "Xml/BoostingTermQuery.xml",
+        "Xml/CachedFilter.xml",
+        "Xml/ConstantScoreQuery.xml",
+        "Xml/DisjunctionMaxQuery.xml",
+        "Xml/DuplicateFilterQuery.xml",
+        "Xml/FuzzyLikeThisQuery.xml",
+        "Xml/LikeThisQuery.xml",
+        "Xml/MatchAllDocsQuery.xml",
+        "Xml/NestedBooleanQuery.xml",
+        "Xml/NumericRangeFilterQuery.xml",
+        "Xml/NumericRangeQueryQuery.xml",
+        "Xml/RangeFilterQuery.xml",
+        "Xml/reuters21578.txt",
+        "Xml/SpanQuery.xml",
+        "Xml/TermQuery.xml",
+        "Xml/TermsFilterQuery.xml",
+        "Xml/TermsQuery.xml",
+        "Xml/UserInputQuery.xml",
+        "Xml/UserInputQueryCustomField.xml"
+      ]
+    }
+  },
   "frameworks": {
     "netcoreapp1.0": {
       "imports": "dnxcore50",
@@ -19,6 +50,7 @@
         }
       },
       "buildOptions": {
+        "define": [ "NETSTANDARD" ],
         "compile": {
           "excludeFiles": [
             "Xml/TestQueryTemplateManager.cs",


Mime
View raw message