summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornuclearmistake <nuclearmistake@gmail.com>2014-05-15 10:30:26 -0400
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 17:03:20 -0700
commit73c9e7206b1bc68d54020baf1548bfe016fc339c (patch)
tree8fd3319a792feeb2e6b5bf03f5c3cc1b781b2aeb
parent451a31bda1674a3b66093b4d08ff3fce92eb3f40 (diff)
downloadbuild-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.mk8
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,)