lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r889114 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/Constants.cs
Date Thu, 10 Dec 2009 06:41:00 GMT
Author: digy
Date: Thu Dec 10 06:40:59 2009
New Revision: 889114

URL: http://svn.apache.org/viewvc?rev=889114&view=rev
Log:
LUCENENET-324 System.TypeInitializationException on linux

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/Constants.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/Constants.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Util/Constants.cs?rev=889114&r1=889113&r2=889114&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/Constants.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/Constants.cs Thu Dec 10 06:40:59 2009
@@ -46,7 +46,7 @@
 		public static readonly bool JAVA_1_3 = JAVA_VERSION.StartsWith("1.3.");
 		
 		/// <summary>The value of <tt>System.getProperty("os.name")<tt>. *</summary>
-		public static readonly System.String OS_NAME = System.Environment.GetEnvironmentVariable("OS");
+		public static readonly System.String OS_NAME = System.Environment.GetEnvironmentVariable("OS")
?? "Linux";
 		/// <summary>True iff running on Linux. </summary>
 		public static readonly bool LINUX = OS_NAME.StartsWith("Linux");
 		/// <summary>True iff running on Windows. </summary>



Mime
View raw message