You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by pi...@apache.org on 2025/09/04 15:10:10 UTC
(atlas) 01/01: ATLAS-5098: option to customize name of the configuration filename
This is an automated email from the ASF dual-hosted git repository.
pinal pushed a commit to branch ATLAS-5098
in repository https://gitbox.apache.org/repos/asf/atlas.git
commit 2559d19b0fabe300779b45d7209c8203659abf1e
Author: Pinal Shah <pi...@freestoneinfotech.com>
AuthorDate: Thu Sep 4 16:30:04 2025 +0530
ATLAS-5098: option to customize name of the configuration filename
---
intg/src/main/java/org/apache/atlas/ApplicationProperties.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/intg/src/main/java/org/apache/atlas/ApplicationProperties.java b/intg/src/main/java/org/apache/atlas/ApplicationProperties.java
index 7551cc950..e54847c6e 100644
--- a/intg/src/main/java/org/apache/atlas/ApplicationProperties.java
+++ b/intg/src/main/java/org/apache/atlas/ApplicationProperties.java
@@ -44,6 +44,7 @@ public final class ApplicationProperties extends PropertiesConfiguration {
private static final Logger LOG = LoggerFactory.getLogger(ApplicationProperties.class);
public static final String ATLAS_CONFIGURATION_DIRECTORY_PROPERTY = "atlas.conf";
+ public static final String ATLAS_PROPERTIES_FILENAME_SYSTEM_CONF = "atlas.properties";
public static final String APPLICATION_PROPERTIES = "atlas-application.properties";
public static final String GRAPHDB_BACKEND_CONF = "atlas.graphdb.backend";
public static final String STORAGE_BACKEND_CONF = "atlas.graph.storage.backend";
@@ -104,7 +105,8 @@ public final class ApplicationProperties extends PropertiesConfiguration {
me = instance;
if (me == null) {
- set(get(APPLICATION_PROPERTIES));
+ String propertyFilename = System.getProperty(ATLAS_PROPERTIES_FILENAME_SYSTEM_CONF, APPLICATION_PROPERTIES);
+ set(get(propertyFilename));
me = instance;
}