From df7b1d6e39fd92199e223c4554a523ba228eab5f Mon Sep 17 00:00:00 2001 From: "fischman@webrtc.org" Date: Wed, 11 Dec 2013 22:36:22 +0000 Subject: [PATCH] AppRTCDemo(android): make ant be quiet on success and not overly noisy on failure. Also silence a 'cd' that would otherwise emit the path/to/talk. R=henrike@webrtc.org Review URL: https://webrtc-codereview.appspot.com/5539004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5271 4adac7df-926f-26a2-2b94-8c16560cd09d --- talk/libjingle_examples.gyp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/talk/libjingle_examples.gyp b/talk/libjingle_examples.gyp index c69aa9ee9..1e2eeb0fb 100755 --- a/talk/libjingle_examples.gyp +++ b/talk/libjingle_examples.gyp @@ -304,6 +304,9 @@ 'outputs': [ '<(PRODUCT_DIR)/AppRTCDemo-debug.apk', ], + 'variables': { + 'ant_log': '<(INTERMEDIATE_DIR)/ant.log', + }, 'action': [ 'bash', '-ec', 'rm -fr <(_outputs) examples/android/{bin,libs} && ' @@ -311,8 +314,10 @@ 'cp <(PRODUCT_DIR)/libjingle_peerconnection.jar examples/android/libs/ &&' '<(android_strip) -o examples/android/libs/<(android_app_abi)/libjingle_peerconnection_so.so <(PRODUCT_DIR)/libjingle_peerconnection_so.so &&' 'cd examples/android && ' - 'ant debug && ' - 'cd - && ' + 'mkdir -p <(INTERMEDIATE_DIR) && ' + '{ ant -q -l <(ant_log) debug || ' + ' { cat <(ant_log) ; exit 1; } } && ' + 'cd - > /dev/null && ' 'cp examples/android/bin/AppRTCDemo-debug.apk <(_outputs)' ], },