OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library pub.command.serve; | 5 library pub.command.serve; |
6 | 6 |
7 import 'dart:async' hide TimeoutException; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:barback/barback.dart'; | 9 import 'package:barback/barback.dart'; |
10 | 10 |
11 import '../barback/dart_forwarding_transformer.dart'; | 11 import '../barback/dart_forwarding_transformer.dart'; |
12 import '../barback/dart2js_transformer.dart'; | 12 import '../barback/dart2js_transformer.dart'; |
13 import '../barback/pub_package_provider.dart'; | 13 import '../barback/pub_package_provider.dart'; |
14 import '../barback.dart' as barback; | 14 import '../barback.dart' as barback; |
15 import '../command.dart'; | 15 import '../command.dart'; |
16 import '../entrypoint.dart'; | 16 import '../entrypoint.dart'; |
17 import '../exit_codes.dart' as exit_codes; | 17 import '../exit_codes.dart' as exit_codes; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 if (!completer.isCompleted) completer.completeError(error, stackTrace); | 124 if (!completer.isCompleted) completer.completeError(error, stackTrace); |
125 }); | 125 }); |
126 | 126 |
127 log.message("Serving ${entrypoint.root.name} " | 127 log.message("Serving ${entrypoint.root.name} " |
128 "on http://$hostname:${server.port}"); | 128 "on http://$hostname:${server.port}"); |
129 | 129 |
130 return completer.future; | 130 return completer.future; |
131 }); | 131 }); |
132 } | 132 } |
133 } | 133 } |
OLD | NEW |