From d4f12b9235517e81a0789a78afc5c38f10255eba Mon Sep 17 00:00:00 2001 From: mrnolte Date: Tue, 2 Aug 2022 13:19:18 +0200 Subject: [PATCH] Implemented skipping of Exporting properties --- .../main/java/main/ci_runners/PropertyListExporter.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/java/src/main/java/main/ci_runners/PropertyListExporter.java b/scripts/java/src/main/java/main/ci_runners/PropertyListExporter.java index e7716fc0..e73c6473 100644 --- a/scripts/java/src/main/java/main/ci_runners/PropertyListExporter.java +++ b/scripts/java/src/main/java/main/ci_runners/PropertyListExporter.java @@ -21,17 +21,23 @@ public class PropertyListExporter implements CIRunnable { private static final Logger logger = LoggerFactory.getLogger(PropertyListExporter.class); + private final Path path; private final OntologyManager ontologyManager; @Autowired - public PropertyListExporter(final OntologyManager ontologyManager, @Value("${propertyListPath}") final Path path) { + public PropertyListExporter(final OntologyManager ontologyManager, + @Value("${propertyListPath#{null}}") final Path path) { this.path = path; this.ontologyManager = ontologyManager; } @Override public void run() throws IOException { + if (path == null) { + logger.info("CL argument 'propertyListPath' not given. Skipping export of properties."); + return; + } for (final OWLOntology owlOntology : ontologyManager.mainOntologies().collect(Collectors.toSet())) { exportProperties(owlOntology); }