export changes

This commit is contained in:
Efstratios Giannopoulos 2024-05-29 18:29:28 +03:00
parent 9b44da2aea
commit 896d0148a8
4 changed files with 361 additions and 391 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.idea/
target/
logs/

View File

@ -16,17 +16,17 @@ public class LanguageRDAMapper {
private final static Map<String, String> langMap = new HashMap<>();
private static final LoggerService logger = new LoggerService(LoggerFactory.getLogger(LanguageRDAMapper.class));
static {
try {
ObjectMapper mapper = new ObjectMapper(); //TODO
InputStreamReader isr = new InputStreamReader(LanguageRDAMapper.class.getClassLoader().getResource("internal/rda-lang-map.json").openStream(), StandardCharsets.UTF_8);
langMap.putAll(mapper.readValue(isr, LinkedHashMap.class));
isr.close();
} catch (IOException e) {
logger.error(e.getMessage(), e);
}
}
// static {
// try {
// ObjectMapper mapper = new ObjectMapper(); //TODO
// InputStreamReader isr = new InputStreamReader(LanguageRDAMapper.class.getClassLoader().getResource("internal/rda-lang-map.json").openStream(), StandardCharsets.UTF_8);
// langMap.putAll(mapper.readValue(isr, LinkedHashMap.class));
// isr.close();
//
// } catch (IOException e) {
// logger.error(e.getMessage(), e);
// }
// }
public Language toRDA(String code) {
if (code == null || code.isBlank()) return null;

View File

@ -1,2 +1,2 @@
rda-file-transformer:
useSharedStorage: true
useSharedStorage: false