| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 import glob | 7 import glob |
| 8 import gsutil | 8 import gsutil |
| 9 import imp | 9 import imp |
| 10 import optparse | 10 import optparse |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 if sdk_zip: | 204 if sdk_zip: |
| 205 args.append('-Dbuild.dart.sdk.zip={0}'.format(sdk_zip)) | 205 args.append('-Dbuild.dart.sdk.zip={0}'.format(sdk_zip)) |
| 206 if extra_artifacts: | 206 if extra_artifacts: |
| 207 args.append('-Dbuild.extra.artifacts={0}'.format(extra_artifacts)) | 207 args.append('-Dbuild.extra.artifacts={0}'.format(extra_artifacts)) |
| 208 if is_windows: | 208 if is_windows: |
| 209 args.append('-autoproxy') | 209 args.append('-autoproxy') |
| 210 if extra_args: | 210 if extra_args: |
| 211 args.extend(extra_args) | 211 args.extend(extra_args) |
| 212 args.append('-Dbuild.local.build=false') | 212 args.append('-Dbuild.local.build=false') |
| 213 args.append('-Dbuild.channel=' + CHANNEL) | 213 args.append('-Dbuild.channel=' + CHANNEL) |
| 214 args.append('-Ddart.version.full=' + utils.GetVersion()) |
| 215 args.append('-Dbuild.version.qualifier=' + |
| 216 utils.GetEclipseVersionQualifier()) |
| 214 | 217 |
| 215 extra_args = os.environ.get('ANT_EXTRA_ARGS') | 218 extra_args = os.environ.get('ANT_EXTRA_ARGS') |
| 216 if extra_args is not None: | 219 if extra_args is not None: |
| 217 parsed_extra = extra_args.split() | 220 parsed_extra = extra_args.split() |
| 218 for arg in parsed_extra: | 221 for arg in parsed_extra: |
| 219 args.append(arg) | 222 args.append(arg) |
| 220 | 223 |
| 221 print ' '.join(args) | 224 print ' '.join(args) |
| 222 status = subprocess.call(args, shell=is_windows) | 225 status = subprocess.call(args, shell=is_windows) |
| 223 os.chdir(cwd) | 226 os.chdir(cwd) |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1247 def FileDelete(f): | 1250 def FileDelete(f): |
| 1248 """delete the given file - do not re-throw any exceptions that occur""" | 1251 """delete the given file - do not re-throw any exceptions that occur""" |
| 1249 if os.path.exists(f): | 1252 if os.path.exists(f): |
| 1250 try: | 1253 try: |
| 1251 os.remove(f) | 1254 os.remove(f) |
| 1252 except OSError: | 1255 except OSError: |
| 1253 print 'error deleting %s' % f | 1256 print 'error deleting %s' % f |
| 1254 | 1257 |
| 1255 if __name__ == '__main__': | 1258 if __name__ == '__main__': |
| 1256 sys.exit(main()) | 1259 sys.exit(main()) |
| OLD | NEW |