please review fix for 7116322, enhance javac make rule with a little bit of instrumentation
Stuart Marks
stuart.marks at oracle.com
Tue Nov 29 00:42:56 UTC 2011
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)
More information about the build-dev
mailing list