8037085: The sjavac exclude option should accept valid directory identifiers

Option handling code rewritten. Exclusion / inclusion patterns changed from package to directories.

Reviewed-by: jfranck, erikj, ihse
This commit is contained in:
Andreas Lundblad 2014-04-22 16:45:10 +02:00
parent b893bb3e3b
commit ebe813fbb0

View File

@ -326,7 +326,7 @@ JDK_USER_DEFINED_FILTER := $(strip $(subst $(COMMA),$(SPACE), $(JDK_FILTER)))
ifeq ($(ENABLE_SJAVAC),yes)
# With sjavac enabled, excluded sources are not even considered for linking.
# Explicitly add the security sources to sourcepath for linking.
BUILD_JDK_SOURCEPATH:=$(patsubst %,-i$(SPACE)%.*,$(subst /,.,$(SECURITY_PKGS))) \
BUILD_JDK_SOURCEPATH:=$(patsubst %,-i$(SPACE)%/*,$(SECURITY_PKGS)) \
-sourcepath $(JDK_TOPDIR)/src/share/classes
endif