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

Unified Diff: lib/src/compiler.dart

Issue 111893006: Switch web_ui to use path 1.0.0 (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years 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 | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler.dart
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
index cd25ccf1e78daaac96bf113bfe04db24e4b5c6b4..3206e73c45ceef31e54395c12ee815949c520f1f 100644
--- a/lib/src/compiler.dart
+++ b/lib/src/compiler.dart
@@ -86,18 +86,18 @@ class Compiler {
_resetCssFile = options.resetCssFile;
if (path.isRelative(_resetCssFile)) {
// If CSS reset file path is relative from our current path.
- _resetCssFile = path.resolve(_resetCssFile);
+ _resetCssFile = path.absolute(_resetCssFile);
}
}
// Normalize paths - all should be relative or absolute paths.
if (path.isAbsolute(_mainPath) || path.isAbsolute(baseDir) ||
path.isAbsolute(outputDir) || path.isAbsolute(packageRoot)) {
- if (path.isRelative(_mainPath)) _mainPath = path.resolve(_mainPath);
- if (path.isRelative(baseDir)) baseDir = path.resolve(baseDir);
- if (path.isRelative(outputDir)) outputDir = path.resolve(outputDir);
+ if (path.isRelative(_mainPath)) _mainPath = path.absolute(_mainPath);
+ if (path.isRelative(baseDir)) baseDir = path.absolute(baseDir);
+ if (path.isRelative(outputDir)) outputDir = path.absolute(outputDir);
if (path.isRelative(packageRoot)) {
- packageRoot = path.resolve(packageRoot);
+ packageRoot = path.absolute(packageRoot);
}
}
_pathMapper = new PathMapper(
« no previous file with comments | « no previous file | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698