You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Yang,BongYeol (JIRA)" <ji...@apache.org> on 2015/08/26 04:53:47 UTC

[jira] [Created] (FELIX-5014) Support Windows 10 for Bundle-NativeCode

Yang,BongYeol created FELIX-5014:
------------------------------------

             Summary: Support Windows 10 for Bundle-NativeCode
                 Key: FELIX-5014
                 URL: https://issues.apache.org/jira/browse/FELIX-5014
             Project: Felix
          Issue Type: Improvement
          Components: Framework
    Affects Versions: framework-5.0.2
         Environment: Windows 10 x64
            Reporter: Yang,BongYeol


http://svn.apache.org/repos/asf/felix/trunk/framework/src/main/java/org/apache/felix/framework/util/manifestparser/NativeLibraryClause.java

Felix Framework does not recognize windows 10. Following patch can fix the problem.

diff --git NativeLibraryClause.java NativeLibraryClause2.java
index 92b30dd..42479d6 100644
--- NativeLibraryClause.java
+++ NativeLibraryClause2.java
@@ -63,6 +63,7 @@ public class NativeLibraryClause
     private static final String OS_WINDOWS_7 = "windows7";
     private static final String OS_WINDOWS_8 = "windows8";
     private static final String OS_WINDOWS_9 = "windows9";
+       private static final String OS_WINDOWS_10 = "windows10";
     private static final String OS_WINDOWS_95 = "windows95";
     private static final String OS_WINDOWS_98 = "windows98";
     private static final String OS_WINDOWS_CE = "windowsce";
@@ -613,6 +614,10 @@ public class NativeLibraryClause
             {
                 os = OS_WINDOWS_9;
             }
+                       else if ((value.indexOf("10") >= 0) || value.equals("win10"))
+            {
+                os = OS_WINDOWS_10;
+            }
             return os;
         }
         else if (value.startsWith(OS_LINUX))




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)