All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.sitture.envconfig.EnvConfigProfileFileList Maven / Gradle / Ivy

Go to download

A simple utility to manage environment configs in Java-based projects by merging *.properties files with environment variables overrides.

There is a newer version: 1.13.1
Show newest version
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