8071550: SetupJavaComilation EXCLUDE/INCLUDE/EXCLUDE_FILE do not work on META-INF files

Reviewed-by: ihse
This commit is contained in:
Erik Joelsson 2015-01-26 16:25:26 +01:00
parent 995835697d
commit 50ce50d7bb

View File

@ -487,6 +487,7 @@ define SetupJavaCompilationInner
$1_ALL_COPIES += $$(filter $$(addprefix %,$$($1_COPY)),$$($1_ALL_SRCS)) $1_ALL_COPIES += $$(filter $$(addprefix %,$$($1_COPY)),$$($1_ALL_SRCS))
# Copy these explicitly # Copy these explicitly
$1_ALL_COPIES += $$($1_COPY_FILES) $1_ALL_COPIES += $$($1_COPY_FILES)
endif
# Copy must also respect filters. # Copy must also respect filters.
ifneq (,$$($1_INCLUDES)) ifneq (,$$($1_INCLUDES))
$1_ALL_COPIES := $$(filter $$($1_SRC_INCLUDES),$$($1_ALL_COPIES)) $1_ALL_COPIES := $$(filter $$($1_SRC_INCLUDES),$$($1_ALL_COPIES))
@ -497,7 +498,6 @@ define SetupJavaCompilationInner
ifneq (,$$($1_EXCLUDE_FILES)) ifneq (,$$($1_EXCLUDE_FILES))
$1_ALL_COPIES := $$(filter-out $$($1_EXCLUDE_FILES_PATTERN),$$($1_ALL_COPIES)) $1_ALL_COPIES := $$(filter-out $$($1_EXCLUDE_FILES_PATTERN),$$($1_ALL_COPIES))
endif endif
endif
ifneq (,$$($1_ALL_COPIES)) ifneq (,$$($1_ALL_COPIES))
# Yep, there are files to be copied! # Yep, there are files to be copied!
$1_ALL_COPY_TARGETS:= $1_ALL_COPY_TARGETS:=