use of es.bsc.compss.types.project.exceptions.ProjectFileValidationException in project compss by bsc-wdc.
the class ResourceLoader method loadFiles.
private static void loadFiles() throws ResourcesFileValidationException, ProjectFileValidationException {
LOGGER.info("ResourceLoader loading files");
// Load resources
try {
LOGGER.debug("ResourceLoader loading resources.xml");
ResourceLoader.resources = new ResourcesFile(new File(resources_XML), resources_XSD, LOGGER);
} catch (SAXException | JAXBException e) {
throw new ResourcesFileValidationException(e);
}
// Load project
try {
LOGGER.debug("ResourceLoader loading project.xml");
ResourceLoader.project = new ProjectFile(new File(project_XML), project_XSD, LOGGER);
} catch (SAXException | JAXBException e) {
throw new ProjectFileValidationException(e);
}
}
Aggregations