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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library immic.compiler; | 5 library immic.compiler; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 | 9 |
10 import 'package:path/path.dart' as p; | 10 import 'package:path/path.dart' as p; |
11 | 11 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 String resourcesDirectory = join(dirname(Platform.script.path), | 93 String resourcesDirectory = join(dirname(Platform.script.path), |
94 '..', 'lib', 'src', 'resources'); | 94 '..', 'lib', 'src', 'resources'); |
95 for (String resource in RESOURCES) { | 95 for (String resource in RESOURCES) { |
96 String resourcePath = join(resourcesDirectory, resource); | 96 String resourcePath = join(resourcesDirectory, resource); |
97 File file = new File(resourcePath); | 97 File file = new File(resourcePath); |
98 String contents = file.readAsStringSync(); | 98 String contents = file.readAsStringSync(); |
99 writeToFile(outputDirectory, resource, contents); | 99 writeToFile(outputDirectory, resource, contents); |
100 } | 100 } |
101 } | 101 } |
OLD | NEW |