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

Unified Diff: tools/create_sdk.py

Issue 14110004: Add the new dart analyzer to the SDK. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
« sdk/bin/dartanalyzer.bat ('K') | « sdk/bin/dartanalyzer.bat ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_sdk.py
===================================================================
--- tools/create_sdk.py (revision 21407)
+++ tools/create_sdk.py (working copy)
@@ -55,6 +55,7 @@
# ......(more will come here)
+import glob
import optparse
import os
import re
@@ -113,7 +114,7 @@
def CopyDartScripts(home, sdk_root):
# TODO(dgrove) - add pub once issue 6619 is fixed
- for executable in ['dart2js', 'dartdoc']:
+ for executable in ['dart2js', 'dartanalyzer', 'dartdoc']:
CopyShellScript(os.path.join(home, 'sdk', 'bin', executable),
os.path.join(sdk_root, 'bin'))
@@ -262,6 +263,16 @@
src_file = join(ANALYZER_HOME, 'util', 'analyzer', jarToCopy)
copyfile(src_file, dest_file)
+ # Create and copy dartanalyzer into 'util'
+ DARTANALYZER_SRC = join(HOME, build_dir, 'dartanalyzer')
+ DARTANALYZER_DEST = join(UTIL, 'dartanalyzer')
+ os.makedirs(DARTANALYZER_DEST)
+
+ jarFiles = glob.glob(join(DARTANALYZER_SRC, '*.jar'))
+
+ for jarFile in jarFiles:
+ copyfile(jarFile, join(DARTANALYZER_DEST, os.path.basename(jarFile)))
+
# Create and populate util/pub.
copytree(join(HOME, 'utils', 'pub'), join(UTIL, 'pub'),
ignore=ignore_patterns('.svn', 'sdk'))
« sdk/bin/dartanalyzer.bat ('K') | « sdk/bin/dartanalyzer.bat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698