From 830e99fc38bfa0ce14af7644e1954de89ef7879c Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Thu, 15 Feb 2024 10:00:26 +0100 Subject: Make aai-resources runnable locally via mvn spring-boot:run - make some property files ignorable Issue-ID: AAI-3779 Change-Id: I79cf4c6f989f96d304b35c466221e957b94d3e81 Signed-off-by: Fiete Ostkamp --- .../src/main/java/org/onap/aai/TenantIsolation/DataImportTasks.java | 2 +- aai-resources/src/main/java/org/onap/aai/service/RetiredService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'aai-resources/src/main/java') diff --git a/aai-resources/src/main/java/org/onap/aai/TenantIsolation/DataImportTasks.java b/aai-resources/src/main/java/org/onap/aai/TenantIsolation/DataImportTasks.java index e32d404..098b715 100644 --- a/aai-resources/src/main/java/org/onap/aai/TenantIsolation/DataImportTasks.java +++ b/aai-resources/src/main/java/org/onap/aai/TenantIsolation/DataImportTasks.java @@ -53,7 +53,7 @@ import org.springframework.stereotype.Component; * */ @Component -@PropertySource("file:${server.local.startpath}/etc/appprops/datatoolscrons.properties") +@PropertySource(value="file:${server.local.startpath}/etc/appprops/datatoolscrons.properties", ignoreResourceNotFound=true) public class DataImportTasks { private static final Logger LOGGER; diff --git a/aai-resources/src/main/java/org/onap/aai/service/RetiredService.java b/aai-resources/src/main/java/org/onap/aai/service/RetiredService.java index 506a097..94b1be1 100644 --- a/aai-resources/src/main/java/org/onap/aai/service/RetiredService.java +++ b/aai-resources/src/main/java/org/onap/aai/service/RetiredService.java @@ -33,7 +33,7 @@ import org.springframework.stereotype.Service; @Service @PropertySource("classpath:retired.properties") -@PropertySource(value = "file:${server.local.startpath}/retired.properties") +@PropertySource(value = "file:${server.local.startpath}/retired.properties", ignoreResourceNotFound=true) public class RetiredService { private String retiredPatterns; -- cgit 1.2.3-korg