commit | 605cf6d329cc8e8c73ea4de4e14e0960decc3adc | [log] [tgz] |
---|---|---|
author | Helge <stallkamp@ids-mannheim.de> | Fri Mar 24 16:04:19 2023 +0100 |
committer | Helge <stallkamp@ids-mannheim.de> | Mon Mar 27 13:41:54 2023 +0200 |
tree | 39c47c744badcc47b415e5d3bd5372629239e3ba | |
parent | f93c6025c372b5576727814b22122cd14310c2f6 [diff] |
Update deprecated Configuration constructor Change-Id: If773c9dc7960b28870be2de544996a4d0046c78b
diff --git a/src/main/java/de/ids_mannheim/korap/plkexport/Service.java b/src/main/java/de/ids_mannheim/korap/plkexport/Service.java index b57667a..2e3deb0 100644 --- a/src/main/java/de/ids_mannheim/korap/plkexport/Service.java +++ b/src/main/java/de/ids_mannheim/korap/plkexport/Service.java
@@ -100,7 +100,8 @@ InputStream is = cl.getResourceAsStream("assets/export.js"); private final String exportJsStr = streamToString(is); - Configuration cfg = new Configuration(); + Configuration cfg = new Configuration(Configuration.VERSION_2_3_32); + { cfg.setClassForTemplateLoading(Service.class, "/assets/templates"); cfg.setDefaultEncoding("UTF-8");