use of com.developmentontheedge.be5.metadata.serialization.yaml.YamlSerializer in project be5 by DevelopmentOnTheEdge.
the class Serialization method save.
/**
* @param project
* @param root
* @param format
* @throws ProjectSaveException
*/
public static void save(final Project project, final Path root) throws ProjectSaveException {
Objects.requireNonNull(project);
Objects.requireNonNull(root);
try {
new YamlSerializer().serializeProjectTo(project, root);
} catch (final WriteException e) {
throw new ProjectSaveException(root, e);
}
}
Aggregations