changeset 7684:7e5faca81800

RT-38312: Modify Packager to remove QT Kit platform when creating Mac App Store bundles Summary: The runtime check caused problems when run on windows and linux, make sure that doesn't happen.
author shemnon
date Thu, 14 Aug 2014 15:27:10 -0600
parents e83331cf4ed4
children afbc7b22b7ab
files modules/fxpackager/src/main/java/com/oracle/tools/packager/mac/MacAppBundler.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/fxpackager/src/main/java/com/oracle/tools/packager/mac/MacAppBundler.java	Thu Aug 14 13:42:57 2014 -0700
+++ b/modules/fxpackager/src/main/java/com/oracle/tools/packager/mac/MacAppBundler.java	Thu Aug 14 15:27:10 2014 -0600
@@ -666,6 +666,12 @@
     }
 
     public static Rule[] createMacRuntimeRules(Map<String, ? super Object> params) {
+        if (!System.getProperty("os.name").toLowerCase().contains("os x")) {
+            // we will never get a sensible answer unless we are running on OSX,
+            // so quit now and return null indicating 'no sensible value'
+            return null;
+        }
+
         //Subsetting of JRE is restricted.
         //JRE README defines what is allowed to strip:
         //   ´╗┐http://www.oracle.com/technetwork/java/javase/jre-8-readme-2095710.html