adjusted path to template resource

This commit is contained in:
Claudio Atzori 2020-03-30 13:11:49 +02:00
parent 1a7a866861
commit 2e2d4c4c68
1 changed files with 6 additions and 6 deletions

View File

@ -7,17 +7,17 @@ import java.nio.charset.StandardCharsets;
public class TemplateResources { public class TemplateResources {
private String record = read("eu/dnetlib/dhp/graph/template/record.st"); private String record = read("eu/dnetlib/dhp/oa/provision/template/record.st");
private String instance = read("eu/dnetlib/dhp/graph/template/instance.st"); private String instance = read("eu/dnetlib/dhp/oa/provision/template/instance.st");
private String rel = read("eu/dnetlib/dhp/graph/template/rel.st"); private String rel = read("eu/dnetlib/dhp/oa/provision/template/rel.st");
private String webresource = read("eu/dnetlib/dhp/graph/template/webresource.st"); private String webresource = read("eu/dnetlib/dhp/oa/provision/template/webresource.st");
private String child = read("eu/dnetlib/dhp/graph/template/child.st"); private String child = read("eu/dnetlib/dhp/oa/provision/template/child.st");
private String entity = read("eu/dnetlib/dhp/graph/template/entity.st"); private String entity = read("eu/dnetlib/dhp/oa/provision/template/entity.st");
private static String read(final String classpathResource) throws IOException { private static String read(final String classpathResource) throws IOException {
return Resources.toString(Resources.getResource(classpathResource), StandardCharsets.UTF_8); return Resources.toString(Resources.getResource(classpathResource), StandardCharsets.UTF_8);