OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. |
| 5 # |
| 6 # Script to compile the analyzer. |
| 7 # |
| 8 # Usage: compile_analyzer.py output_dir class_path files |
| 9 # |
| 10 |
| 11 import sys |
| 12 import subprocess |
| 13 |
| 14 def main(): |
| 15 cmd = ['javac', |
| 16 '-sourcepath', 'foobar', |
| 17 '-source', '6', |
| 18 '-target', '6', |
| 19 '-implicit:none', |
| 20 '-d', sys.argv[1], |
| 21 '-cp', sys.argv[2], |
| 22 ] |
| 23 # Add all the source files. |
| 24 cmd.extend(sys.argv[3:]) |
| 25 subprocess.call(cmd) |
| 26 |
| 27 |
| 28 if __name__=='__main__': |
| 29 main() |
OLD | NEW |