8157511: JDK-8157348 broke gensrc of module infos with extra provides
Reviewed-by: mchung
This commit is contained in:
parent
f33cf602b8
commit
22ce7a4237
@ -102,6 +102,7 @@ ifneq ($(MOD_FILES), )
|
||||
$(foreach line, $(MODIFICATIONS), \
|
||||
$(eval split_line := $(subst /,$(SPACE),$(line))) \
|
||||
$(eval command := $(word 1, $(split_line))) \
|
||||
$(if $(filter $(command), exports), \
|
||||
$(eval package := $(patsubst %;,%,$(word 2, $(split_line)))) \
|
||||
$(if $(call PackageExists, $(package)), \
|
||||
$(eval to_module := $(patsubst %;,%,$(word 4, $(split_line)))) \
|
||||
@ -111,6 +112,15 @@ ifneq ($(MOD_FILES), )
|
||||
$(eval ARGS += -$(command) $(package)) \
|
||||
) \
|
||||
) \
|
||||
, \
|
||||
$(if $(filter $(command), provides), \
|
||||
$(eval provider := $(patsubst %;,%,$(word 2, $(split_line)))) \
|
||||
$(eval class := $(patsubst %;,%,$(word 4, $(split_line)))) \
|
||||
$(eval ARGS += -$(command) $(provider)/$(class)) \
|
||||
, \
|
||||
$(error A module-info.extra in $(MODULE) contains invalid command $(command)) \
|
||||
) \
|
||||
) \
|
||||
)
|
||||
|
||||
ifneq ($(ARGS), )
|
||||
|
Loading…
x
Reference in New Issue
Block a user