Chromium Code Reviews| Index: build/android/gyp/ant.py |
| diff --git a/build/android/gyp/ant.py b/build/android/gyp/ant.py |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..d5808dd81940f06bc2e1e84cdc9e766ccb07a487 |
| --- /dev/null |
| +++ b/build/android/gyp/ant.py |
| @@ -0,0 +1,30 @@ |
| +#!/usr/bin/env python |
| +# |
| +# Copyright 2013 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| +"""An Ant wrapper that suppresses useless Ant output |
| + |
| +Ant build scripts output "BUILD SUCCESSFUL" and build timing at the end of |
| +every build. In the Android build, this just adds a lot of useless noise to the |
| +build output. This script forwards its arguments to ant, and prints Ant's |
| +output up until the BUILD SUCCESSFUL line. |
| +""" |
| + |
| +import sys |
| + |
| +from util import build_utils |
| + |
| + |
| +def main(argv): |
| + stdout = build_utils.CheckCallDie(['ant'] + argv[1:], suppress_output=True) |
| + stdout = stdout.strip().split('\n') |
| + for line in stdout: |
| + if 'BUILD SUCCESSFUL' in line: |
|
newt (away)
2013/04/04 01:41:43
Can this be stricter?
line == 'BUILD_SUCCESSFUL'
cjhopman
2013/04/04 16:38:31
Done.
|
| + break |
| + print line |
| + |
| + |
| +if __name__ == '__main__': |
| + sys.exit(main(sys.argv)) |
| + |