OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library fletchc.verbs.servicec_verb; | 5 library fletchc.verbs.servicec_verb; |
6 | 6 |
7 import 'dart:io' show | 7 import 'dart:io' show |
8 File, | 8 File, |
9 Directory, | 9 Directory, |
10 Platform; | 10 Platform; |
11 | 11 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 print("Compiling $relativeName..."); | 109 print("Compiling $relativeName..."); |
110 | 110 |
111 String fileName = targetUri.toFilePath(); | 111 String fileName = targetUri.toFilePath(); |
112 bool success = await servicec.compileAndReportErrors( | 112 bool success = await servicec.compileAndReportErrors( |
113 fileName, relativeName, resourcesDirectory, outputDirectory); | 113 fileName, relativeName, resourcesDirectory, outputDirectory); |
114 | 114 |
115 print("Compiled $relativeName to $outputDirectory"); | 115 print("Compiled $relativeName to $outputDirectory"); |
116 | 116 |
117 return success ? 0 : DART_VM_EXITCODE_COMPILE_TIME_ERROR; | 117 return success ? 0 : DART_VM_EXITCODE_COMPILE_TIME_ERROR; |
118 } | 118 } |
OLD | NEW |