Skip to content

Commit

Permalink
Version 0.6.16.0 .
Browse files Browse the repository at this point in the history
svn merge -r 25743:25973  https://dart.googlecode.com/svn/branches/bleeding_edge
trunk

git-svn-id: http://dart.googlecode.com/svn/trunk@25977 260f80e4-7a28-3924-810f-c04153c831b5
  • Loading branch information
dgrove committed May 27, 2015
2 parents 6e3b626 + e8c1c17 commit e97cdf2
Show file tree
Hide file tree
Showing 449 changed files with 19,429 additions and 13,129 deletions.
58 changes: 14 additions & 44 deletions client/tools/buildbot_annotated_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
chromium and headless dartium.
"""

import imp
import os
import re
import socket
import subprocess
import sys
import shutil
import glob

BUILDER_NAME = 'BUILDBOT_BUILDERNAME'
BUILDER_CLOBBER = 'BUILDBOT_CLOBBER'
Expand All @@ -30,6 +29,13 @@
DARTIUM_V_MATCHER = (
'gs://dartium-archive/[^/]*/dartium-\w*-inc-([0-9]*).([0-9]*).zip')

def GetUtils():
'''Dynamically load the tools/utils.py python module.'''
dart_dir = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
return imp.load_source('utils', os.path.join(dart_dir, 'tools', 'utils.py'))

utils = GetUtils()

def GetBuildInfo():
"""Returns a tuple (name, version, mode) where:
- name: A name for the build - the buildbot host if a buildbot.
Expand Down Expand Up @@ -58,21 +64,7 @@ def GetBuildInfo():
version = 'unknown'
return (name, version)


def GetUtils():
'''
dynamically get the utils module
We use a dynamic import for tools/util.py because we derive its location
dynamically using sys.argv[0]. This allows us to run this script from
different directories.
args:
'''
sys.path.append(os.path.abspath(os.path.join('.', 'tools')))
utils = __import__('utils')
return utils

def GetOutDir(utils, mode):
def GetOutDir(mode):
'''
get the location to place the output
Expand All @@ -99,8 +91,7 @@ def ProcessTools(mode, name, version):
# get the latest changed revision from the current repository sub-tree
version = GetLatestChangedRevision()

utils = GetUtils()
outdir = GetOutDir(utils, mode)
outdir = GetOutDir(mode)
cmds = [sys.executable, toolsBuildScript,
'--mode=' + mode, '--revision=' + version,
'--name=' + name, '--out=' + outdir]
Expand Down Expand Up @@ -162,32 +153,11 @@ def ClobberBuilder():
def GetShouldClobber():
return os.environ.get(BUILDER_CLOBBER) == "1"

def RunDart(scriptPath):
if sys.platform == 'darwin':
pipe = subprocess.Popen(
['./tools/testing/bin/macos/dart', scriptPath],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
elif os.name == 'posix':
pipe = subprocess.Popen(
['./tools/testing/bin/linux/dart', scriptPath],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
else:
pipe = subprocess.Popen(
['tools\\testing\\bin\\windows\\dart.exe', scriptPath],
stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)

output = pipe.communicate()
return output[0]

def GetLatestChangedRevision():
# 0.1.2.0_r13661
# 0.1.2.0_r13661_username
fullVersion = RunDart("tools/version.dart")

m = re.search('._r(\d+)', fullVersion)
svnRev = m.group(1)

return svnRev
revision = utils.GetSVNRevision()
if not revision:
raise Exception("Couldn't determine last changed revision.")
return revision

def main():
if len(sys.argv) == 0:
Expand Down
6 changes: 0 additions & 6 deletions pkg/analyzer_experimental/bin/analyzer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,8 @@ library analyzer;
import 'dart:async';
import 'dart:io';

import 'package:analyzer_experimental/src/generated/java_io.dart';
import 'package:analyzer_experimental/src/generated/engine.dart';
import 'package:analyzer_experimental/src/generated/error.dart';
import 'package:analyzer_experimental/src/generated/source_io.dart';
import 'package:analyzer_experimental/src/generated/sdk.dart';
import 'package:analyzer_experimental/src/generated/sdk_io.dart';
import 'package:analyzer_experimental/src/generated/ast.dart';
import 'package:analyzer_experimental/src/generated/element.dart';
import 'package:analyzer_experimental/options.dart';

import 'package:analyzer_experimental/src/analyzer_impl.dart';
Expand Down
2 changes: 0 additions & 2 deletions pkg/analyzer_experimental/lib/src/analyzer_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

library analyzer_impl;

import 'dart:async';
import 'dart:io';

import 'generated/java_io.dart';
Expand All @@ -13,7 +12,6 @@ import 'generated/error.dart';
import 'generated/source_io.dart';
import 'generated/sdk.dart';
import 'generated/sdk_io.dart';
import 'generated/ast.dart';
import 'generated/element.dart';
import '../options.dart';

Expand Down
1 change: 0 additions & 1 deletion pkg/analyzer_experimental/lib/src/error.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
library error;

import 'dart:collection';
import 'dart:io';
import 'dart:math' as math;

import 'generated/error.dart';
Expand Down
8 changes: 0 additions & 8 deletions pkg/analyzer_experimental/lib/src/error_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,9 @@

library error_formatter;

import 'dart:async';
import 'dart:io';

import 'generated/java_io.dart';
import 'generated/engine.dart';
import 'generated/error.dart';
import 'generated/source_io.dart';
import 'generated/sdk.dart';
import 'generated/sdk_io.dart';
import 'generated/ast.dart';
import 'generated/element.dart';
import '../options.dart';

/**
Expand Down
Loading

0 comments on commit e97cdf2

Please sign in to comment.