keep old location of libraries.dart in the generated SDK (fixes 23755)

R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1216313002.
This commit is contained in:
Sigmund Cherem 2015-06-30 17:08:21 -07:00
parent cf790b0829
commit 4ec3db6947
4 changed files with 13 additions and 11 deletions

View file

@ -4,7 +4,7 @@ author: Dart Team <misc@dartlang.org>
description: Static analyzer for Dart.
homepage: http://www.dartlang.org
environment:
sdk: '>=1.8.0 <2.0.0'
sdk: '>=1.12.0-dev.1.0 <2.0.0'
dependencies:
args: '>=0.12.1 <0.14.0'
html: ^0.12.0

View file

@ -1,9 +0,0 @@
// Copyright (c) 2012, 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.
/// This file moved under `sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart`.
@deprecated
library libraries;
export 'sdk_library_metadata/lib/libraries.dart';

View file

@ -220,6 +220,17 @@ def Main():
ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh',
'.gitignore'))
# Copy libraries.dart to lib/_internal/libraries.dart for backwards
# compatibility.
#
# TODO(sigmund): stop copying libraries.dart. Old versions (<=0.25.1-alpha.4)
# of the analyzer package do not support the new location of this file. We
# should be able to remove the old file once we release a newer version of
# analyzer and popular frameworks have migrated to use it.
copyfile(join(HOME, 'sdk', 'lib', '_internal',
'sdk_library_metadata', 'lib', 'libraries.dart'),
join(LIB, '_internal', 'libraries.dart'))
# Create and copy tools.
UTIL = join(SDK_tmp, 'util')
os.makedirs(UTIL)

View file

@ -16,7 +16,7 @@
'action_name': 'generate_dartanalyzer_snapshot',
'inputs': [
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
'../../sdk/lib/_internal/libraries.dart',
'../../sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart',
'<(SHARED_INTERMEDIATE_DIR)/packages.stamp',
'<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../third_party/pkg/analyzer_cli"])',
],