src/jdk.jpackage/share/classes/jdk/jpackage/internal/JLinkBundlerHelper.java
branchJDK-8200758-branch
changeset 57391 970f28090a06
parent 57389 cce526c681dc
child 57392 46d4b0aa4542
--- a/src/jdk.jpackage/share/classes/jdk/jpackage/internal/JLinkBundlerHelper.java	Thu Jun 06 19:10:12 2019 -0400
+++ b/src/jdk.jpackage/share/classes/jdk/jpackage/internal/JLinkBundlerHelper.java	Thu Jun 06 19:14:02 2019 -0400
@@ -73,16 +73,6 @@
 
     private JLinkBundlerHelper() {}
 
-    @SuppressWarnings("unchecked")
-    static final BundlerParamInfo<Integer> DEBUG =
-            new StandardBundlerParam<>(
-                    "-J-Xdebug",
-                    Integer.class,
-                    p -> null,
-                    (s, p) -> {
-                        return Integer.valueOf(s);
-                    });
-
     static String listOfPathToString(List<Path> value) {
         String result = "";
 
@@ -195,7 +185,6 @@
         Set<String> limitModules =
                 StandardBundlerParam.LIMIT_MODULES.fetchFrom(params);
         Path outputDir = imageBuilder.getRoot();
-        String excludeFileList = imageBuilder.getExcludeFileList();
         File mainJar = getMainJar(params);
         ModFile.ModType mainJarType = ModFile.ModType.Unknown;
 
@@ -229,11 +218,8 @@
             validModules.add(mainModule);
         }
 
-        Log.verbose(MessageFormat.format(
-                I18N.getString("message.modules"), validModules.toString()));
-
         runJLink(outputDir, modulePath, validModules, limitModules,
-                excludeFileList, new HashMap<String,String>(), bindServices);
+                new HashMap<String,String>(), bindServices);
 
         imageBuilder.prepareApplicationFiles();
     }
@@ -387,7 +373,7 @@
     }
 
     private static void runJLink(Path output, List<Path> modulePath,
-            Set<String> modules, Set<String> limitModules, String excludes,
+            Set<String> modules, Set<String> limitModules,
             HashMap<String, String> user, boolean bindServices)
             throws IOException {
 
@@ -410,10 +396,6 @@
             args.add("--limit-modules");
             args.add(getStringList(limitModules));
         }
-        if (excludes != null) {
-            args.add("--exclude-files");
-            args.add(excludes);
-        }
         if (user != null && !user.isEmpty()) {
             for (Map.Entry<String, String> entry : user.entrySet()) {
                 args.add(entry.getKey());