7122235: stop the build if javac fails
Reviewed-by: chegar, dholmes, mcimadamore, ohair
--- a/jdk/make/common/Rules.gmk Fri Dec 16 16:09:41 2011 +0000
+++ b/jdk/make/common/Rules.gmk Sat Dec 17 08:21:23 2011 -0800
@@ -239,7 +239,7 @@
$(CAT) $<.filtered; \
$(ECHO) "# Running javac: $$numfiles files; in $(CURDIR)"; \
$(ECHO) $(JAVAC_CMD) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$<.filtered; \
- $(JAVAC_CMD) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$<.filtered; \
+ $(JAVAC_CMD) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$<.filtered && \
$(ECHO) "# javac finished"; \
fi
@$(java-vm-cleanup)