OLD | NEW |
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 import fnmatch | 7 import fnmatch |
8 import optparse | 8 import optparse |
9 import os | 9 import os |
10 import sys | 10 import sys |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 parser.add_option('--javac-includes', | 81 parser.add_option('--javac-includes', |
82 help='A list of file patterns. If provided, only java files that match' + | 82 help='A list of file patterns. If provided, only java files that match' + |
83 'one of the patterns will be compiled.') | 83 'one of the patterns will be compiled.') |
84 parser.add_option('--classpath', help='Classpath for javac.') | 84 parser.add_option('--classpath', help='Classpath for javac.') |
85 parser.add_option('--output-dir', help='Directory for javac output.') | 85 parser.add_option('--output-dir', help='Directory for javac output.') |
86 parser.add_option('--stamp', help='Path to touch on success.') | 86 parser.add_option('--stamp', help='Path to touch on success.') |
87 parser.add_option('--chromium-code', type='int', help='Whether code being ' | 87 parser.add_option('--chromium-code', type='int', help='Whether code being ' |
88 'compiled should be built with stricter warnings for ' | 88 'compiled should be built with stricter warnings for ' |
89 'chromium code.') | 89 'chromium code.') |
90 | 90 |
91 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja. | |
92 parser.add_option('--ignore', help='Ignored.') | |
93 | |
94 options, args = parser.parse_args() | 91 options, args = parser.parse_args() |
95 | 92 |
96 DoJavac(options, args) | 93 DoJavac(options, args) |
97 | 94 |
98 if options.stamp: | 95 if options.stamp: |
99 build_utils.Touch(options.stamp) | 96 build_utils.Touch(options.stamp) |
100 | 97 |
101 | 98 |
102 if __name__ == '__main__': | 99 if __name__ == '__main__': |
103 sys.exit(main()) | 100 sys.exit(main()) |
104 | 101 |
105 | 102 |
OLD | NEW |