ThePrez / DotEnv-Java-IBMi

A `.env` implementation with convenience functions for IBM i
Apache License 2.0
5 stars 1 forks source link

Support for loading environment variables from a configuration file #1

Open mkwan01 opened 2 months ago

mkwan01 commented 2 months ago

@ThePrez The cdimascio/dotenv-java project already has support for loading env variables from a Java properties file. This is to add the same support to the DotEnv-Java-IBMi project. We will add the following API:

public static synchronized Dotenv loadDotEnv(File configFile) throws DotenvException;

This API will merge the env variables from the config file with the ones from the system. It will persist the env settings in the static instance s_dotEnv,

mkwan01 commented 2 months ago

This change is a requirement for the following issue in the AIStream-IBMi project: https://github.com/ThePrez/AIStream-IBMi/issues/11

mkwan01 commented 2 months ago

The change was merged using a fork. No longer need this issue.