in src/main/java/com/epam/digital/data/platform/generator/config/MainConfig.java [78:92]
public Path getRootTemplatePath(ServiceGenerationProperties properties)
throws IOException, URISyntaxException {
URL uri = this.getClass().getClassLoader().getResource(properties.getTemplates());
Path root;
if ("jar".equals(uri.toURI().getScheme())) {
Map<String, String> env = new HashMap<>();
String[] array = uri.toString().split("!");
FileSystem fs = FileSystems.newFileSystem(URI.create(array[0]), env);
root = fs.getPath(properties.getTemplates());
} else {
root = Paths.get(uri.toURI());
}
return root;
}