annotate make/rmic/Rmic-java.management.rmi.gmk @ 17432:5907556c9c81

Added tag jdk-9.0.4+5 for changeset 7ba3aa648bf9
author asaha
date Tue, 07 Nov 2017 18:42:06 -0800
parents a0ffa67badf4
children
rev   line source
chegar@10444 1 #
ihse@15812 2 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
chegar@10444 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
chegar@10444 4 #
chegar@10444 5 # This code is free software; you can redistribute it and/or modify it
chegar@10444 6 # under the terms of the GNU General Public License version 2 only, as
chegar@10444 7 # published by the Free Software Foundation. Oracle designates this
chegar@10444 8 # particular file as subject to the "Classpath" exception as provided
chegar@10444 9 # by Oracle in the LICENSE file that accompanied this code.
chegar@10444 10 #
chegar@10444 11 # This code is distributed in the hope that it will be useful, but WITHOUT
chegar@10444 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
chegar@10444 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
chegar@10444 14 # version 2 for more details (a copy is included in the LICENSE file that
chegar@10444 15 # accompanied this code).
chegar@10444 16 #
chegar@10444 17 # You should have received a copy of the GNU General Public License version
chegar@10444 18 # 2 along with this work; if not, write to the Free Software Foundation,
chegar@10444 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
chegar@10444 20 #
chegar@10444 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
chegar@10444 22 # or visit www.oracle.com if you need additional information or have any
chegar@10444 23 # questions.
chegar@10444 24 #
chegar@10444 25
chegar@10444 26 default: all
chegar@10444 27
chegar@10444 28 include RmicCommon.gmk
chegar@10444 29
chegar@10444 30 ##########################################################################################
chegar@10444 31 #
chegar@10444 32 # Generate RMI stubs
chegar@10444 33 #
chegar@10444 34
chegar@10444 35 JMX_RMI_CLASSES := javax.management.remote.rmi.RMIConnectionImpl \
chegar@10444 36 javax.management.remote.rmi.RMIServerImpl
jbachorik@12735 37
jbachorik@12735 38 # Generate into gensrc dir where sources get picked up for javadoc, then move the classes
jbachorik@12735 39 # into the stub classes dir.
jbachorik@12735 40 $(eval $(call SetupRMICompilation,RMI_GEN, \
chegar@10444 41 CLASSES := $(JMX_RMI_CLASSES), \
dfuchs@16603 42 CLASSES_DIR := $(CLASSES_DIR)/java.management.rmi, \
dfuchs@16603 43 STUB_CLASSES_DIR := $(RMIC_GENSRC_DIR)/java.management.rmi, \
chegar@10444 44 RUN_V12 := true, \
jbachorik@12735 45 KEEP_GENERATED := true, \
jbachorik@12735 46 ))
chegar@10444 47
jbachorik@12735 48 # Find all classes generated and move them from the gensrc dir to the stub classes dir
jbachorik@12735 49 $(RMIC_GENSRC_DIR)/_classes.moved: $(RMI_GEN)
jbachorik@12735 50 $(eval classfiles := $(shell $(FIND) $(RMIC_GENSRC_DIR) -name "*.class"))
jbachorik@12735 51 $(foreach src, $(classfiles), \
jbachorik@12735 52 $(eval target := $(patsubst $(RMIC_GENSRC_DIR)/%, \
alanb@13901 53 $(STUB_CLASSES_DIR)/%, $(src))) \
jbachorik@12735 54 $(MKDIR) -p $(dir $(target)) ; \
jbachorik@12735 55 $(MV) $(src) $(target) $(NEWLINE))
jbachorik@12735 56 $(TOUCH) $@
chegar@10444 57
chegar@10444 58 ##########################################################################################
chegar@10444 59
jbachorik@12735 60 all: $(RMIC_GENSRC_DIR)/_classes.moved $(RMI_GEN)
chegar@10444 61
chegar@10444 62 .PHONY: all