diff options
author | nuclearmistake <nuclearmistake@gmail.com> | 2014-05-15 10:30:26 -0400 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-06 17:03:20 -0700 |
commit | 73c9e7206b1bc68d54020baf1548bfe016fc339c (patch) | |
tree | 8fd3319a792feeb2e6b5bf03f5c3cc1b781b2aeb | |
parent | 451a31bda1674a3b66093b4d08ff3fce92eb3f40 (diff) | |
download | build-73c9e7206b1bc68d54020baf1548bfe016fc339c.tar.gz build-73c9e7206b1bc68d54020baf1548bfe016fc339c.tar.bz2 build-73c9e7206b1bc68d54020baf1548bfe016fc339c.zip |
colorize non-fatal javac stderr yellow (and actually display it... at all)
woops!
Signed-off-by: nuclearmistake <nuclearmistake@gmail.com>
Change-Id: I984f428022a68a825aa041866e8d459bd6611f71
-rw-r--r-- | core/definitions.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/definitions.mk b/core/definitions.mk index 6addb88cc..ad1f175e5 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -1761,10 +1761,12 @@ $(hide) if [ -s $(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list-uniq ] ; the $(PRIVATE_JAVACFLAGS) \ \@$(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list-uniq \ 2>$(PRIVATE_CLASS_INTERMEDIATES_DIR)/stderr \ - && rm -f $(PRIVATE_CLASS_INTERMEDIATES_DIR)/stderr \ - || ( if [ -e $(PRIVATE_CLASS_INTERMEDIATES_DIR)/stderr ]; then \ + && ( [ -s $(PRIVATE_CLASS_INTERMEDIATES_DIR)/stderr ] && \ + echo -e ${CL_YLW}"`cat $(PRIVATE_CLASS_INTERMEDIATES_DIR)/stderr`"${CL_RST} 1>&2; \ + rm -f $(PRIVATE_CLASS_INTERMEDIATES_DIR)/stderr ) \ + || ( [ -s $(PRIVATE_CLASS_INTERMEDIATES_DIR)/stderr ] && \ echo -e ${CL_RED}"`cat $(PRIVATE_CLASS_INTERMEDIATES_DIR)/stderr`"${CL_RST} 1>&2; \ - fi; rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR); exit 41 ) \ + rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR); exit 41 ) \ fi $(if $(PRIVATE_JAVA_LAYERS_FILE), $(hide) build/tools/java-layers.py \ $(PRIVATE_JAVA_LAYERS_FILE) \@$(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list-uniq,) |