8026773: Failing compilation in Corba does not fail the build
Reviewed-by: ihse, tbell
--- a/common/autoconf/spec.gmk.in Tue Feb 04 10:01:20 2014 +0100
+++ b/common/autoconf/spec.gmk.in Wed Feb 05 11:03:54 2014 +0100
@@ -456,10 +456,13 @@
JARSIGNER:=@FIXPATH@ @JARSIGNER@
# You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
-BOOTSTRAP_JAVAC_JAR:=$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar
-BOOTSTRAP_JAVAC_ARGS:="-Xbootclasspath/p:$(BOOTSTRAP_JAVAC_JAR)" -cp $(BOOTSTRAP_JAVAC_JAR)
-NEW_JAVAC = $(BOOTSTRAP_JAVAC_ARGS) com.sun.tools.javac.Main
-NEW_JAVADOC = $(BOOTSTRAP_JAVAC_ARGS) com.sun.tools.javadoc.Main
+INTERIM_LANGTOOLS_JAR := $(LANGTOOLS_OUTPUTDIR)/dist/interim_langtools.jar
+INTERIM_LANGTOOLS_ARGS := "-Xbootclasspath/p:$(INTERIM_LANGTOOLS_JAR)" -cp $(INTERIM_LANGTOOLS_JAR)
+NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javac.Main
+NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javadoc.Main
+
+# The interim corba jar is needed for running rmic
+INTERIM_CORBA_JAR := $(CORBA_OUTPUTDIR)/dist/interim_corba.jar
# Base flags for RC
# Guarding this against resetting value. Legacy make files include spec multiple
--- a/make/common/JavaCompilation.gmk Tue Feb 04 10:01:20 2014 +0100
+++ b/make/common/JavaCompilation.gmk Wed Feb 05 11:03:54 2014 +0100
@@ -247,6 +247,8 @@
$$($1_SUPDATE_CONTENTS) \
$$($1_JARINDEX) && true )
+ # Add jar to target list
+ $1 += $$($1_JAR)
endef
define SetupZipArchive
@@ -307,6 +309,9 @@
$(ECHO) Updating $$($1_NAME)
$$(foreach i,$$($1_SRC),(cd $$i && $(ZIP) -qru $$@ . $$($1_ZIP_INCLUDES) $$($1_ZIP_EXCLUDES) -x \*_the.\* $$(addprefix -x$(SPACE),$$(patsubst $$i/%,%,$$($1_EXCLUDE_FILES))) || test "$$$$?" = "12" )$$(NEWLINE)) true
$(TOUCH) $$@
+
+ # Add zip to target list
+ $1 += $$($1_ZIP)
endef
define add_file_to_copy
@@ -579,6 +584,9 @@
JARINDEX:=$$($1_JARINDEX), \
HEADERS:=$$($1_HEADERS), \
SETUP:=$$($1_SETUP)))
+
+ # Add jar to target list
+ $1 += $$($1_JAR)
endif
# Check if a srczip was specified, then setup the rules for the srczip.
@@ -589,6 +597,8 @@
INCLUDES:=$$($1_INCLUDES), \
EXCLUDES:=$$($1_EXCLUDES), \
EXCLUDE_FILES:=$$($1_EXCLUDE_FILES)))
+
+ # Add zip to target list
+ $1 += $$($1_SRCZIP)
endif
-
endef