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 11:22:59 UTC

(atlas) branch ATLAS-5098 created (now d5f093419)

This is an automated email from the ASF dual-hosted git repository.

pinal pushed a change to branch ATLAS-5098
in repository https://gitbox.apache.org/repos/asf/atlas.git


      at d5f093419 ATLAS-5098: Support dynamic property file to be loaded under Atlas

This branch includes the following new commits:

     new d5f093419 ATLAS-5098: Support dynamic property file to be loaded under Atlas

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(atlas) 01/01: ATLAS-5098: Support dynamic property file to be loaded under Atlas

Posted by pi...@apache.org.
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 d5f09341902f2b46452a7dfd096440f8736b0d35
Author: Pinal Shah <pi...@freestoneinfotech.com>
AuthorDate: Thu Sep 4 16:30:04 2025 +0530

    ATLAS-5098: Support dynamic property file to be loaded under Atlas
---
 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;
                 }