Skip to content

Commit d11f415

Browse files
authored
ATLAS-5098: option to customize name of the configuration filename (#432)
1 parent 18d7f9d commit d11f415

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

intg/src/main/java/org/apache/atlas/ApplicationProperties.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public final class ApplicationProperties extends PropertiesConfiguration {
4444
private static final Logger LOG = LoggerFactory.getLogger(ApplicationProperties.class);
4545

4646
public static final String ATLAS_CONFIGURATION_DIRECTORY_PROPERTY = "atlas.conf";
47+
public static final String ATLAS_PROPERTIES_FILENAME_SYSTEM_CONF = "atlas.properties";
4748
public static final String APPLICATION_PROPERTIES = "atlas-application.properties";
4849
public static final String GRAPHDB_BACKEND_CONF = "atlas.graphdb.backend";
4950
public static final String STORAGE_BACKEND_CONF = "atlas.graph.storage.backend";
@@ -104,7 +105,8 @@ public static Configuration get() throws AtlasException {
104105
me = instance;
105106

106107
if (me == null) {
107-
set(get(APPLICATION_PROPERTIES));
108+
String propertyFilename = System.getProperty(ATLAS_PROPERTIES_FILENAME_SYSTEM_CONF, APPLICATION_PROPERTIES);
109+
set(get(propertyFilename));
108110

109111
me = instance;
110112
}

0 commit comments

Comments
 (0)