changeset 7738:e28ed8b67772

RT-38312: Modify Packager to remove QT Kit platform when creating Mac App Store bundles and RT-37732:[packager] Default argument lambdas should be well behaved Summary: Sometimes the "default" values are truly unacceptable. In those cases a ConfigException wrapped in a RuntimeException is acceptable way to communicate that. In this case a runtime configured to a non-mac layout is not acceptable, and some default unconfigured environments will see that.
author shemnon
date Wed, 20 Aug 2014 10:52:43 -0600
parents a4ba2aff078e
children b5b98fbc0e7b
files modules/fxpackager/src/test/java/com/oracle/tools/packager/BundlersTest.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/fxpackager/src/test/java/com/oracle/tools/packager/BundlersTest.java	Wed Aug 20 10:49:33 2014 -0600
+++ b/modules/fxpackager/src/test/java/com/oracle/tools/packager/BundlersTest.java	Wed Aug 20 10:52:43 2014 -0600
@@ -133,7 +133,9 @@
             System.err.println("Bundler '" + bundler.getID() + "' parameter '" + bpi.getID() + "' failed metadata check: " + checkDescription);
             System.err.println("Exception was thrown");
             re.printStackTrace(System.err);
-            return false;
+
+            // throwing a wrapped ConfigException is an acceptable failure
+            return re.getCause() instanceof ConfigException;
         }
     }