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); }