jdk/make/launcher/Launcher-java.rmi.gmk
author katleman
Thu, 21 Aug 2014 14:16:14 -0700
changeset 25878 6d561031123e
parent 25859 3317bb8137f4
child 27565 729f9700483a
permissions -rw-r--r--
Added tag jdk9-b27 for changeset 98ce0879ab4c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     1
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     2
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     4
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    10
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    15
# accompanied this code).
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    16
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    20
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    23
# questions.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    24
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    25
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    26
include LauncherCommon.gmk
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    27
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    28
$(eval $(call SetupLauncher,rmid, \
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    29
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.rmi.server.Activation"$(COMMA) }'))
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    30
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    31
$(eval $(call SetupLauncher,rmiregistry, \
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    32
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.rmi.registry.RegistryImpl"$(COMMA) }'))
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    33
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    34
##########################################################################################
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    35
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    36
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    37
# The java-rmi.cgi script in bin/ only gets delivered in certain situations
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    38
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    39
JAVA_RMI_CGI := $(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/java-rmi.cgi
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    40
ifeq ($(OPENJDK_TARGET_OS), linux)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    41
  LAUNCHERS += $(JAVA_RMI_CGI)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    42
endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    43
ifeq ($(OPENJDK_TARGET_OS), solaris)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    44
  LAUNCHERS += $(JAVA_RMI_CGI)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    45
endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    46
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    47
# TODO:
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    48
# On windows java-rmi.cgi shouldn't be bundled since Java 1.2, but has been built all
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    49
# this time anyway. Since jdk6, it has been built from the wrong source and resulted
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    50
# in a (almost) copy of the standard java launcher named "java-rmi.exe" ending up in
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    51
# the final images bin dir. This weird behavior is mimicked here in the converted
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    52
# makefiles for now. Should probably just be deleted.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    53
# http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6512052
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    54
ifeq ($(OPENJDK_TARGET_OS), windows)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    55
  $(eval $(call SetupLauncher,java-rmi, , \
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    56
      $(call SET_SHARED_LIBRARY_MAPFILE,$(JDK_TOPDIR)/make/java/main/java/mapfile-$(OPENJDK_TARGET_CPU)),,,,,,,,,RMI))
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    57
else
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    58
  $(JAVA_RMI_CGI): $(JDK_TOPDIR)/src/java.rmi/unix/bin/java-rmi.cgi.sh
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    59
	$(call install-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    60
	$(CHMOD) a+x $@
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    61
endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    62
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    63
##########################################################################################
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    64
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    65
java.rmi: $(LAUNCHERS)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    66
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    67
all: java.rmi
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    68
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    69
.PHONY: all java.rmi