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
diff --git a/talk/libjingle_examples.gyp b/talk/libjingle_examples.gyp
index c69aa9e..1e2eeb0 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)'
],
},