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

Unified Diff: sdk/lib/_internal/pub/lib/src/command_deploy.dart

Issue 15741021: Get deploy tests working on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « no previous file | sdk/lib/_internal/pub/test/deploy/compiles_dart_entrypoints_to_dart_and_js_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/command_deploy.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command_deploy.dart b/sdk/lib/_internal/pub/lib/src/command_deploy.dart
index edd281880dcdee64e2f3fbe56425ff9bf7c51c9d..7261b128e9d5a61fc897143f7af87784cdd4bd44 100644
--- a/sdk/lib/_internal/pub/lib/src/command_deploy.dart
+++ b/sdk/lib/_internal/pub/lib/src/command_deploy.dart
@@ -49,8 +49,8 @@ class DeployCommand extends PubCommand {
_computeLogSize();
cleanDir(target);
- _logAction("Copying", "${path.relative(source)}/",
- "${path.relative(target)}/");
+ _logAction("Copying", "${path.relative(source)}${path.separator}",
+ "${path.relative(target)}${path.separator}");
copyFiles(files.where((file) => path.extension(file) != '.dart'),
source, target);
@@ -105,7 +105,7 @@ class DeployCommand extends PubCommand {
.map((verb) => verb.length).reduce(math.max);
var sourceLengths = new List.from(
_entrypoints.map((file) => path.relative(file).length))
- ..add("${path.relative(source)}/".length);
+ ..add("${path.relative(source)}${path.separator}".length);
if (_shouldAddDartJs) sourceLengths.add("package:browser/dart.js".length);
_maxSourceLength = sourceLengths.reduce(math.max);
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/test/deploy/compiles_dart_entrypoints_to_dart_and_js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698