use of com.developmentontheedge.be5.metadata.model.SourceFileCollection in project be5 by DevelopmentOnTheEdge.
the class YamlSerializer method serializeSources.
private void serializeSources(final Project project) throws WriteException {
for (SourceFileCollection collection : project.getApplication().getSourceFiles()) {
for (final SourceFile file : collection) {
if (!file.isLoaded())
continue;
try {
fileSystem.writeSourceFile(collection.getName(), file.getName(), file.getSource());
file.setLinkedFile(fileSystem.getNameSpaceFile(collection.getName(), file.getName()));
} catch (final IOException e) {
throw new WriteException(file, e);
}
}
}
}
Aggregations