RFR: JDK-8147086: Excluding of copy files broken after JDK-8144226

Erik Joelsson erik.joelsson at oracle.com
Thu Jan 14 11:06:19 UTC 2016

Since JDK-8144226, the java.desktop module is including more resource 
files than it used to. This is caused by a small bug in 
SetupJavaCompilation.gmk that fails to apply exclude patterns on files 
to be copied. The fix is simple:

diff -r 4b01ea6c12c3 make/common/JavaCompilation.gmk
--- a/make/common/JavaCompilation.gmk
+++ b/make/common/JavaCompilation.gmk
@@ -267,7 +267,7 @@
      $1_ALL_COPIES := $$(filter $$($1_INCLUDE_PATTERN),$$($1_ALL_COPIES))
    ifneq (,$$($1_EXCLUDE_PATTERN))
- $1_ALL_COPIES := $$(filter-out $$($1_EXCLUDES_PATTERN),$$($1_ALL_COPIES))
+ $1_ALL_COPIES := $$(filter-out $$($1_EXCLUDE_PATTERN),$$($1_ALL_COPIES))
    ifneq (,$$($1_ALL_COPIES))
      # Yep, there are files to be copied!

Bug: https://bugs.openjdk.java.net/browse/JDK-8147086


More information about the build-dev mailing list