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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/command/barback.dart

Issue 583853002: Use precompiled dependencies in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years, 3 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
Index: sdk/lib/_internal/pub_generated/lib/src/command/barback.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/command/barback.dart b/sdk/lib/_internal/pub_generated/lib/src/command/barback.dart
index 08ffdb0926a5b0cee027cb5e821a5e741ceae96b..a026a4ce2c567e8f4845d013bdf84bab7389670e 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/command/barback.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/command/barback.dart
@@ -55,8 +55,8 @@ abstract class BarbackCommand extends PubCommand {
usageError(
_directorySentence(invalid, "isn't", "aren't", "in this package"));
}
- var missing = sourceDirectories.where(
- (dir) => !dirExists(path.join(entrypoint.root.dir, dir)));
+ var missing =
+ sourceDirectories.where((dir) => !dirExists(entrypoint.root.path(dir)));
if (missing.isNotEmpty) {
dataError(_directorySentence(missing, "does", "do", "not exist"));
}
@@ -80,8 +80,8 @@ abstract class BarbackCommand extends PubCommand {
if (commandOptions.rest.isNotEmpty) {
usageError('Directory names are not allowed if "--all" is passed.');
}
- var dirs = _allSourceDirectories.where(
- (dir) => dirExists(path.join(entrypoint.root.dir, dir)));
+ var dirs =
+ _allSourceDirectories.where((dir) => dirExists(entrypoint.root.path(dir)));
if (dirs.isEmpty) {
var defaultDirs =
toSentence(_allSourceDirectories.map((name) => '"$name"'));
@@ -93,8 +93,7 @@ abstract class BarbackCommand extends PubCommand {
}
void _addDefaultSources() {
sourceDirectories.addAll(
- defaultSourceDirectories.where(
- (dir) => dirExists(path.join(entrypoint.root.dir, dir))));
+ defaultSourceDirectories.where((dir) => dirExists(entrypoint.root.path(dir))));
if (sourceDirectories.isEmpty) {
var defaults;
if (defaultSourceDirectories.length == 1) {

Powered by Google App Engine
This is Rietveld 408576698