
com.github.sitture.envconfig.EnvConfigProfileFileList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of env-config Show documentation
Show all versions of env-config Show documentation
A simple utility to manage environment configs in Java-based projects by merging *.properties files with environment variables overrides.
package com.github.sitture.envconfig;
import java.io.File;
import java.nio.file.Path;
import java.util.Collections;
import java.util.List;
class EnvConfigProfileFileList extends EnvConfigFileList {
EnvConfigProfileFileList(final Path configPath) {
super(configPath);
}
@Override
public List listFiles() {
final File configDir = configPath.toFile();
return configDir.exists() ? getConfigProperties(configDir) : Collections.emptyList();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy