Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: build/android/gyp/ant.py

Issue 22870021: [Android] Makes GYP changes for EMMA coverage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverts accidental change in common.gypi, moves emma_device_jar to gyp Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/android/dex_action.gypi ('k') | build/android/gyp/dex.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 """An Ant wrapper that suppresses useless Ant output 6
7 """An Ant wrapper that suppresses useless Ant output.
7 8
8 Ant build scripts output "BUILD SUCCESSFUL" and build timing at the end of 9 Ant build scripts output "BUILD SUCCESSFUL" and build timing at the end of
9 every build. In the Android build, this just adds a lot of useless noise to the 10 every build. In the Android build, this just adds a lot of useless noise to the
10 build output. This script forwards its arguments to ant, and prints Ant's 11 build output. This script forwards its arguments to ant, and prints Ant's
11 output up until the BUILD SUCCESSFUL line. 12 output up until the BUILD SUCCESSFUL line.
12 """ 13 """
13 14
14 import sys 15 import sys
15 16
16 from util import build_utils 17 from util import build_utils
17 18
18 19
19 def main(argv): 20 def main(argv):
20 stdout = build_utils.CheckCallDie(['ant'] + argv[1:], suppress_output=True) 21 stdout = build_utils.CheckCallDie(['ant'] + argv[1:], suppress_output=True)
21 stdout = stdout.strip().split('\n') 22 stdout = stdout.strip().split('\n')
22 for line in stdout: 23 for line in stdout:
23 if line.strip() == 'BUILD SUCCESSFUL': 24 if line.strip() == 'BUILD SUCCESSFUL':
24 break 25 break
25 print line 26 print line
26 27
27 28
28 if __name__ == '__main__': 29 if __name__ == '__main__':
29 sys.exit(main(sys.argv)) 30 sys.exit(main(sys.argv))
30
OLDNEW
« no previous file with comments | « build/android/dex_action.gypi ('k') | build/android/gyp/dex.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698