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
This commit is contained in:
fischman@webrtc.org
2013-12-11 22:36:22 +00:00
parent 9ee75e9c77
commit df7b1d6e39

View File

@ -304,6 +304,9 @@
'outputs': [ 'outputs': [
'<(PRODUCT_DIR)/AppRTCDemo-debug.apk', '<(PRODUCT_DIR)/AppRTCDemo-debug.apk',
], ],
'variables': {
'ant_log': '<(INTERMEDIATE_DIR)/ant.log',
},
'action': [ 'action': [
'bash', '-ec', 'bash', '-ec',
'rm -fr <(_outputs) examples/android/{bin,libs} && ' 'rm -fr <(_outputs) examples/android/{bin,libs} && '
@ -311,8 +314,10 @@
'cp <(PRODUCT_DIR)/libjingle_peerconnection.jar examples/android/libs/ &&' '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 &&' '<(android_strip) -o examples/android/libs/<(android_app_abi)/libjingle_peerconnection_so.so <(PRODUCT_DIR)/libjingle_peerconnection_so.so &&'
'cd examples/android && ' 'cd examples/android && '
'ant debug && ' 'mkdir -p <(INTERMEDIATE_DIR) && '
'cd - && ' '{ ant -q -l <(ant_log) debug || '
' { cat <(ant_log) ; exit 1; } } && '
'cd - > /dev/null && '
'cp examples/android/bin/AppRTCDemo-debug.apk <(_outputs)' 'cp examples/android/bin/AppRTCDemo-debug.apk <(_outputs)'
], ],
}, },