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

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

Issue 118583003: gyps! and builds! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « build/android/envsetup.sh ('k') | build/common.gypi » ('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 6
7 """An Ant wrapper that suppresses useless Ant output. 7 """An Ant wrapper that suppresses useless Ant output.
8 8
9 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
10 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
(...skipping 10 matching lines...) Expand all
21 21
22 from util import build_utils 22 from util import build_utils
23 23
24 24
25 def main(argv): 25 def main(argv):
26 option_parser = optparse.OptionParser() 26 option_parser = optparse.OptionParser()
27 build_utils.AddDepfileOption(option_parser) 27 build_utils.AddDepfileOption(option_parser)
28 options, args = option_parser.parse_args(argv[1:]) 28 options, args = option_parser.parse_args(argv[1:])
29 29
30 try: 30 try:
31 stdout = build_utils.CheckOutput(['ant'] + args) 31 stdout = build_utils.CheckOutput(['/Users/thakis/Downloads/apache-ant-1.9.3/ bin/ant'] + args)
32 except build_utils.CalledProcessError: 32 except build_utils.CalledProcessError:
33 # It is very difficult to diagnose ant failures without the '-verbose' 33 # It is very difficult to diagnose ant failures without the '-verbose'
34 # argument. So, when an ant command fails, re-run it with '-verbose' so that 34 # argument. So, when an ant command fails, re-run it with '-verbose' so that
35 # the cause of the failure is easier to identify. 35 # the cause of the failure is easier to identify.
36 verbose_args = ['-verbose'] + [a for a in args if a != '-quiet'] 36 verbose_args = ['-verbose'] + [a for a in args if a != '-quiet']
37 try: 37 try:
38 stdout = build_utils.CheckOutput(['ant'] + verbose_args) 38 stdout = build_utils.CheckOutput(['ant'] + verbose_args)
39 except build_utils.CalledProcessError: 39 except build_utils.CalledProcessError:
40 traceback.print_exc() 40 traceback.print_exc()
41 sys.exit(1) 41 sys.exit(1)
(...skipping 14 matching lines...) Expand all
56 assert '-buildfile' in args 56 assert '-buildfile' in args
57 ant_buildfile = args[args.index('-buildfile') + 1] 57 ant_buildfile = args[args.index('-buildfile') + 1]
58 58
59 build_utils.WriteDepfile( 59 build_utils.WriteDepfile(
60 options.depfile, 60 options.depfile,
61 [ant_buildfile] + build_utils.GetPythonDependencies()) 61 [ant_buildfile] + build_utils.GetPythonDependencies())
62 62
63 63
64 if __name__ == '__main__': 64 if __name__ == '__main__':
65 sys.exit(main(sys.argv)) 65 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/android/envsetup.sh ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698