7122235: stop the build if javac fails
authorsmarks
Sat, 17 Dec 2011 08:21:23 -0800
changeset 11285 ba471669d352
parent 11284 2750cfd2352c
child 11286 a49be3718db9
7122235: stop the build if javac fails Reviewed-by: chegar, dholmes, mcimadamore, ohair
jdk/make/common/Rules.gmk
--- 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)