lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [22/50] [abbrv] lucenenet git commit: Lucene.Net.Tests.Analysis.Common.Analysis.Hunspell (TestAllDictionaries + TestAllDictionaries2): Fixed relative location of dictionary files.
Date Wed, 15 Mar 2017 23:50:04 GMT
Lucene.Net.Tests.Analysis.Common.Analysis.Hunspell (TestAllDictionaries + TestAllDictionaries2):
Fixed relative location of dictionary files.


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

Branch: refs/heads/api-work
Commit: d2918744f352a5d63e41ce9e574b6bd48252ac7c
Parents: d33dd73
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Mar 15 03:27:02 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Mar 15 16:03:28 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Hunspell/TestAllDictionaries.cs                    | 5 ++++-
 .../Analysis/Hunspell/TestAllDictionaries2.cs                   | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d2918744/src/Lucene.Net.Tests.Analysis.Common/Analysis/Hunspell/TestAllDictionaries.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Hunspell/TestAllDictionaries.cs
b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Hunspell/TestAllDictionaries.cs
index 29e6c8c..31313f6 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Hunspell/TestAllDictionaries.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Hunspell/TestAllDictionaries.cs
@@ -4,6 +4,7 @@ using System;
 using System.Diagnostics;
 using System.IO;
 using System.IO.Compression;
+using System.Reflection;
 using System.Text;
 
 namespace Lucene.Net.Analysis.Hunspell
@@ -44,7 +45,9 @@ namespace Lucene.Net.Analysis.Hunspell
     {
 
         // set this to the location of where you downloaded all the files
-        internal static readonly DirectoryInfo DICTIONARY_HOME = new DirectoryInfo(@"..\..\..\..\test-files\analysis\data\dictionaries");
+        internal static readonly DirectoryInfo DICTIONARY_HOME = new DirectoryInfo(
+            System.IO.Path.Combine(new DirectoryInfo(typeof(TestAllDictionaries2).GetTypeInfo().Assembly.Location).Parent.Parent.Parent.Parent.Parent.FullName,
+                @"test-files\analysis\data\dictionaries"));
 
         internal readonly string[] tests = new string[] 
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d2918744/src/Lucene.Net.Tests.Analysis.Common/Analysis/Hunspell/TestAllDictionaries2.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Hunspell/TestAllDictionaries2.cs
b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Hunspell/TestAllDictionaries2.cs
index 7563480..9798936 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Hunspell/TestAllDictionaries2.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Hunspell/TestAllDictionaries2.cs
@@ -4,6 +4,7 @@ using System;
 using System.Diagnostics;
 using System.IO;
 using System.IO.Compression;
+using System.Reflection;
 using System.Text;
 
 namespace Lucene.Net.Analysis.Hunspell
@@ -40,7 +41,9 @@ namespace Lucene.Net.Analysis.Hunspell
     {
 
         // set this to the location of where you downloaded all the files
-        internal static readonly DirectoryInfo DICTIONARY_HOME = new DirectoryInfo(@"..\..\..\..\test-files\analysis\data\thunderbirdDicts");
+        internal static readonly DirectoryInfo DICTIONARY_HOME = new DirectoryInfo(
+            System.IO.Path.Combine(new DirectoryInfo(typeof(TestAllDictionaries2).GetTypeInfo().Assembly.Location).Parent.Parent.Parent.Parent.Parent.FullName,
+                @"test-files\analysis\data\thunderbirdDicts"));
 
         internal readonly string[] tests = new string[]
         {


Mime
View raw message