Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: tools/create_sdk.py

Issue 1216313002: keep old location of libraries.dart in the generated SDK (fixes 23755) (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/libraries.dart ('k') | utils/dartanalyzer/dartanalyzer.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_sdk.py
diff --git a/tools/create_sdk.py b/tools/create_sdk.py
index fefd0c6ba4ce2601a8270658a58b45609b3b5425..c8e858415e0cae77d5353054331e713d721f56cc 100755
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -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) of the
kevmoo 2015/07/01 00:00:21 so 0.25.1-alpha.4
Siggi Cherem (dart-lang) 2015/07/01 00:08:37 Done.
+ # 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)
« no previous file with comments | « sdk/lib/_internal/libraries.dart ('k') | utils/dartanalyzer/dartanalyzer.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698