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

Unified Diff: samples/build_dart/build.dart

Issue 13896034: Add the ability to change the working directory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed tests 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
« no previous file with comments | « runtime/bin/directory_win.cc ('k') | sdk/lib/_internal/compiler/implementation/lib/io_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/build_dart/build.dart
diff --git a/samples/build_dart/build.dart b/samples/build_dart/build.dart
index 2f5ab68d4ade5633e1447d92808f76b4d359779a..215dc0a95b8aeda8171e2fdb51e71c18c5099485 100644
--- a/samples/build_dart/build.dart
+++ b/samples/build_dart/build.dart
@@ -72,7 +72,7 @@ void processArgs() {
* Delete all generated files.
*/
void handleCleanCommand() {
- Directory current = new Directory.current();
+ Directory current = Directory.current;
current.list(recursive: true).listen((FileSystemEntity entity) {
if (entity is File) _maybeClean(entity);
});
@@ -84,7 +84,7 @@ void handleCleanCommand() {
void handleFullBuild() {
var files = <String>[];
- new Directory.current().list(recursive: true).listen(
+ Directory.current.list(recursive: true).listen(
(FileSystemEntity entity) {
if (entity is File) files.add(entity.fullPathSync());
},
« no previous file with comments | « runtime/bin/directory_win.cc ('k') | sdk/lib/_internal/compiler/implementation/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698