author | chegar |
Thu, 03 Mar 2016 12:07:13 +0000 | |
changeset 36225 | 6ae0eebc46e9 |
parent 34351 | f30070a16a4b |
permissions | -rw-r--r-- |
34351
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
1 |
# |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
2 |
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
4 |
# |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
10 |
# |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
15 |
# accompanied this code). |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
16 |
# |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
20 |
# |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
23 |
# questions. |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
24 |
# |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
25 |
|
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
26 |
include GensrcCommon.gmk |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
27 |
|
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
28 |
################################################################################ |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
29 |
|
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
30 |
define merge-providers |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
31 |
$(MKDIR) -p $(@D) |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
32 |
$(CAT) $^ > $@ |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
33 |
endef |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
34 |
|
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
35 |
PROVIDER_FILE := META-INF/services/sun.jvmstat.monitor.MonitoredHostService |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
36 |
|
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
37 |
# Merge the local and remote sevice providers into jdk.jvmstat/META-INF/services |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
38 |
$(SUPPORT_OUTPUTDIR)/gensrc/jdk.jvmstat/$(PROVIDER_FILE): \ |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
39 |
$(JDK_TOPDIR)/src/jdk.jvmstat/share/classes/$(PROVIDER_FILE) \ |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
40 |
$(JDK_TOPDIR)/src/jdk.jvmstat.rmi/share/classes/$(PROVIDER_FILE) |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
41 |
$(merge-providers) |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
42 |
|
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
43 |
# Copy the same service file into jdk.jvmstat.rmi so that they are kept the same. |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
44 |
$(SUPPORT_OUTPUTDIR)/gensrc/jdk.jvmstat.rmi/$(PROVIDER_FILE): \ |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
45 |
$(SUPPORT_OUTPUTDIR)/gensrc/jdk.jvmstat/$(PROVIDER_FILE) |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
46 |
$(install-file) |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
47 |
|
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
48 |
################################################################################ |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
49 |
|
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
50 |
jdk.jvmstat: $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jvmstat/$(PROVIDER_FILE) \ |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
51 |
$(SUPPORT_OUTPUTDIR)/gensrc/jdk.jvmstat.rmi/$(PROVIDER_FILE) |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
52 |
|
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
53 |
all: jdk.jvmstat |
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
54 |
|
f30070a16a4b
8043138: Attach API should not require jvmstat rmi protocol
jbachorik
parents:
diff
changeset
|
55 |
.PHONY: all |