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

Unified Diff: pkg/polymer/lib/src/build/runner.dart

Issue 38333004: Fixes all canonicalization problems... all of them. Ok, not all of them, but at (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « pkg/polymer/lib/deploy.dart ('k') | pkg/polymer/lib/src/loader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/runner.dart
diff --git a/pkg/polymer/lib/src/build/runner.dart b/pkg/polymer/lib/src/build/runner.dart
index 628629f7e45fde93a12087b4c8a69322cc0c6d63..e486fdf30a79f3d9eab4862c9e4133636a94b2bc 100644
--- a/pkg/polymer/lib/src/build/runner.dart
+++ b/pkg/polymer/lib/src/build/runner.dart
@@ -65,8 +65,9 @@ Future<AssetSet> runBarback(BarbackOptions options) {
}
/** Extract the current package from the pubspec.yaml file. */
-String readCurrentPackageFromPubspec() {
- var pubspec = new File('pubspec.yaml');
+String readCurrentPackageFromPubspec([String dir]) {
+ var pubspec = new File(
+ dir == null ? 'pubspec.yaml' : path.join(dir, 'pubspec.yaml'));
if (!pubspec.existsSync()) {
print('error: pubspec.yaml file not found, please run this script from '
'your package root directory.');
« no previous file with comments | « pkg/polymer/lib/deploy.dart ('k') | pkg/polymer/lib/src/loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698