Please review this change to add to the javac make rule some messages about the number of files being compiled, the current working directory, and a new message to demarcate the end of javac output.

This will help capture and analyze javac output, in particular, warning 
messages.

Thanks.

s'marks


diff -r 6fbd69f8e3ab make/common/Rules.gmk
--- a/make/common/Rules.gmk     Fri Nov 18 09:03:43 2011 +0000
+++ b/make/common/Rules.gmk     Mon Nov 28 16:34:34 2011 -0800
@@ -236,9 +236,10 @@
        @if [ `$(CAT) $<.filtered | $(WC) -l` -ge 1 ] ; then \
          $(ECHO) "# Java sources to be compiled: (listed in file $<)"; \
          $(CAT) $<.filtered; \
-         $(ECHO) "# Running javac:"; \
+         $(ECHO) "# Running javac: `$(WC) -l < $<.filtered` files; in `pwd`"; \
$(ECHO) $(JAVAC_CMD) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$<.filtered; \
          $(JAVAC_CMD) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) 
@$<.filtered; \
+         $(ECHO) "# javac finished"; \
        fi
        @$(java-vm-cleanup)

Reply via email to