| Index: editor/tools/compile_analyzer.py
|
| ===================================================================
|
| --- editor/tools/compile_analyzer.py (revision 0)
|
| +++ editor/tools/compile_analyzer.py (revision 0)
|
| @@ -0,0 +1,29 @@
|
| +#!/usr/bin/env python
|
| +# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +# for details. All rights reserved. Use of this source code is governed by a
|
| +# BSD-style license that can be found in the LICENSE file.
|
| +#
|
| +# Script to compile the analyzer.
|
| +#
|
| +# Usage: compile_analyzer.py output_dir class_path files
|
| +#
|
| +
|
| +import sys
|
| +import subprocess
|
| +
|
| +def main():
|
| + cmd = ['javac',
|
| + '-sourcepath', 'foobar',
|
| + '-source', '6',
|
| + '-target', '6',
|
| + '-implicit:none',
|
| + '-d', sys.argv[1],
|
| + '-cp', sys.argv[2],
|
| + ]
|
| + # Add all the source files.
|
| + cmd.extend(sys.argv[3:])
|
| + subprocess.call(cmd)
|
| +
|
| +
|
| +if __name__=='__main__':
|
| + main()
|
|
|