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

Unified Diff: tools/testing/dart/http_server.dart

Issue 12087130: Added '--package-root' to http_server.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | tools/testing/dart/test_progress.dart » ('j') | tools/testing/dart/test_progress.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/http_server.dart
diff --git a/tools/testing/dart/http_server.dart b/tools/testing/dart/http_server.dart
index dcc37a6dbb03dba3abc1257d60c58fa882b6e7f6..84a5b771913bb4f090f67243b8ed16cb8aca00e3 100644
--- a/tools/testing/dart/http_server.dart
+++ b/tools/testing/dart/http_server.dart
@@ -27,6 +27,7 @@ main() {
defaultsTo: 'ia32');
ahe 2013/02/01 10:28:59 Unused option.
parser.addFlag('help', abbr: 'h', negatable: false,
help: 'Print this usage information.');
+ parser.addOption('package-root', help: 'The package root to use.');
var args = parser.parse(new Options().arguments);
if (args['help']) {
print(parser.getUsage());
@@ -39,10 +40,7 @@ main() {
.join(new Path('../../test.dart'))
.canonicalize()
.toNativePath();
- TestingServerRunner.setPackageRootDir({'mode': args['mode'],
- 'arch': args['arch'], 'system': Platform.operatingSystem,
- 'build_directory': ''});
-
+ TestingServerRunner._packageRootDir = new Path(args['package-root']);
TestingServerRunner.startHttpServer('127.0.0.1',
port: int.parse(args['port']));
print('Server listening on port '
@@ -125,7 +123,6 @@ class TestingServerRunner {
}
}
});
-
};
// Echos back the contents of the request as the response data.
« no previous file with comments | « no previous file | tools/testing/dart/test_progress.dart » ('j') | tools/testing/dart/test_progress.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698