use of org.eclipse.winery.yaml.common.reader.xml.Reader in project winery by eclipse.
the class WriterUtils method loadDefinitions.
public static Definitions loadDefinitions(Path path, String namespace, String name) {
Path filePath = getDefinitionsPath(path, namespace, name);
Reader reader = new Reader();
try {
return reader.parse(new FileInputStream(filePath.toFile()));
} catch (JAXBException | FileNotFoundException e) {
e.printStackTrace();
}
return new Definitions();
}
Aggregations