<commit_before>#!/usr/bin/python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Utility class to generate a Dart-specific BuildFactory.

Based on gclient_factory.py.
"""

from buildbot.process.buildstep import RemoteShellCommand
from buildbot.changes import svnpoller
from buildbot.status.mail import MailNotifier
from buildbot.status.status_push import HttpStatusPush

from master.factory import v8_factory
from master.factory import chromium_factory
from master.factory import dart_commands
from master.factory import gclient_factory
from master import master_utils

import config

current_milestone = '0.3'
v8_stable_branch = '3.17'
android_tools_rev = '@ebd740fc3d55dda34d9322c8c5f7749302734325'

milestone_path = '/branches/' + current_milestone
dart_milestone_url = config.Master.dart_url + milestone_path

chromium_git = 'http://git.chromium.org/git/'

dartium_url = config.Master.dart_bleeding + '/deps/dartium.deps'
dartium_trunk_url = config.Master.dart_trunk + '/deps/dartium.deps'
dartium_milestone_url = dart_milestone_url + '/deps/dartium.deps'
android_tools_url = chromium_git + 'android_tools.git' + android_tools_rev

# We set these paths relative to the dart root, the scripts need to
# fix these to be absolute if they don't run from there.
linux_env =  {'BUILDBOT_JAVA_HOME': 'third_party/java/linux/j2sdk'}
linux_clang_env =  {'BUILDBOT_JAVA_HOME': 'third_party/java/linux/j2sdk',
                    'CC': 'third_party/clang/linux/bin/clang',
                    'CXX': 'third_party/clang/linux/bin/clang++'}
windows_env = {'BUILDBOT_JAVA_HOME': 'third_party\\java\\windows\\j2sdk',
               'LOGONSERVER': '\\\\AD1'}

dart_revision_url = "http://code.google.com/p/dart/source/detail?r=%s"

# gclient custom vars
CUSTOM_VARS_SOURCEFORGE_URL = ('sourceforge_url', config.Master.sourceforge_url)
CUSTOM_VARS_GOOGLECODE_URL = ('googlecode_url', config.Master.googlecode_url)
CUSTOM_VARS_CHROMIUM_URL = (
  'chromium_url', config.Master.server_url + config.Master.repo_root)

custom_vars_list = [CUSTOM_VARS_SOURCEFORGE_URL,
                    CUSTOM_VARS_GOOGLECODE_URL,<commit_msg>Use newer version of android_tools<commit_after>#!/usr/bin/python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Utility class to generate a Dart-specific BuildFactory.

Based on gclient_factory.py.
"""

from buildbot.process.buildstep import RemoteShellCommand
from buildbot.changes import svnpoller
from buildbot.status.mail import MailNotifier
from buildbot.status.status_push import HttpStatusPush

from master.factory import v8_factory
from master.factory import chromium_factory
from master.factory import dart_commands
from master.factory import gclient_factory
from master import master_utils

import config

current_milestone = '0.3'
v8_stable_branch = '3.17'
android_tools_rev = '@b12d410c0ee23385da78e6c9f353d28fd992e0bd'

milestone_path = '/branches/' + current_milestone
dart_milestone_url = config.Master.dart_url + milestone_path

chromium_git = 'http://git.chromium.org/git/'

dartium_url = config.Master.dart_bleeding + '/deps/dartium.deps'
dartium_trunk_url = config.Master.dart_trunk + '/deps/dartium.deps'
dartium_milestone_url = dart_milestone_url + '/deps/dartium.deps'
android_tools_url = chromium_git + 'android_tools.git' + android_tools_rev

# We set these paths relative to the dart root, the scripts need to
# fix these to be absolute if they don't run from there.
linux_env =  {'BUILDBOT_JAVA_HOME': 'third_party/java/linux/j2sdk'}
linux_clang_env =  {'BUILDBOT_JAVA_HOME': 'third_party/java/linux/j2sdk',
                    'CC': 'third_party/clang/linux/bin/clang',
                    'CXX': 'third_party/clang/linux/bin/clang++'}
windows_env = {'BUILDBOT_JAVA_HOME': 'third_party\\java\\windows\\j2sdk',
               'LOGONSERVER': '\\\\AD1'}

dart_revision_url = "http://code.google.com/p/dart/source/detail?r=%s"

# gclient custom vars
CUSTOM_VARS_SOURCEFORGE_URL = ('sourceforge_url', config.Master.sourceforge_url)
CUSTOM_VARS_GOOGLECODE_URL = ('googlecode_url', config.Master.googlecode_url)
CUSTOM_VARS_CHROMIUM_URL = (
  'chromium_url', config.Master.server_url + config.Master.repo_root)

custom_vars_list = [CUSTOM_VARS_SOURCEFORGE_URL,
                    CUSTOM_VARS_GOOGLECODE_URL,
{'fraction_non_alphanumeric': 0.09859469105509704, 'fraction_numerical': 0.018068257863038145, 'mean_word_length': 4.9390728476821195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3938480', 'n_tokens_mistral': 1616, 'n_tokens_neox': 1532, 'n_words': 325}