| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 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 """Creates a simple script to run a java "binary". | 7 """Creates a simple script to run a java "binary". |
| 8 | 8 |
| 9 This creates a script that sets up the java command line for running a java | 9 This creates a script that sets up the java command line for running a java |
| 10 jar. This includes correctly setting the classpath and the main class. | 10 jar. This includes correctly setting the classpath and the main class. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 classpath=('"%s"' % '", "'.join(classpath)), | 103 classpath=('"%s"' % '", "'.join(classpath)), |
| 104 bootclasspath=('"%s"' % '", "'.join(bootclasspath) | 104 bootclasspath=('"%s"' % '", "'.join(bootclasspath) |
| 105 if bootclasspath else ''), | 105 if bootclasspath else ''), |
| 106 main_class=options.main_class, | 106 main_class=options.main_class, |
| 107 extra_program_args=repr(extra_program_args), | 107 extra_program_args=repr(extra_program_args), |
| 108 noverify_flag=noverify_flag)) | 108 noverify_flag=noverify_flag)) |
| 109 | 109 |
| 110 os.chmod(options.output, 0750) | 110 os.chmod(options.output, 0750) |
| 111 | 111 |
| 112 if options.depfile: | 112 if options.depfile: |
| 113 build_utils.WriteDepfile( | 113 build_utils.WriteDepfile(options.depfile, options.output) |
| 114 options.depfile, | |
| 115 build_utils.GetPythonDependencies()) | |
| 116 | 114 |
| 117 | 115 |
| 118 if __name__ == '__main__': | 116 if __name__ == '__main__': |
| 119 sys.exit(main(sys.argv[1:])) | 117 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |