public class Configuration
The dotenv configuration
| Constructor and Description |
|---|
Configuration()
The dotenv configuration
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDirectory()
Set the directory containing the .env file
|
java.lang.String |
getFilename()
Sets the name of the .env. The default is .env
|
boolean |
getIgnoreIfMalformed()
Do not throw an exception when .env is malformed
|
boolean |
getIgnoreIfMissing()
Do not throw an exception when .env is missing
|
boolean |
getSystemProperties()
Set env vars into System properties. Enables fetch them via e.g. System.getProperty(...)
|
void |
setDirectory(java.lang.String p)
Set the directory containing the .env file
|
void |
setFilename(java.lang.String p)
Sets the name of the .env. The default is .env
|
void |
setIgnoreIfMalformed(boolean p)
Do not throw an exception when .env is malformed
|
void |
setIgnoreIfMissing(boolean p)
Do not throw an exception when .env is missing
|
void |
setSystemProperties(boolean p)
Set env vars into System properties. Enables fetch them via e.g. System.getProperty(...)
|
@NotNull public java.lang.String getDirectory()
Set the directory containing the .env file
public void setDirectory(@NotNull
java.lang.String p)
Set the directory containing the .env file
@NotNull public java.lang.String getFilename()
Sets the name of the .env. The default is .env
public void setFilename(@NotNull
java.lang.String p)
Sets the name of the .env. The default is .env
public boolean getIgnoreIfMalformed()
Do not throw an exception when .env is malformed
public void setIgnoreIfMalformed(boolean p)
Do not throw an exception when .env is malformed
public boolean getIgnoreIfMissing()
Do not throw an exception when .env is missing
public void setIgnoreIfMissing(boolean p)
Do not throw an exception when .env is missing
public boolean getSystemProperties()
Set env vars into System properties. Enables fetch them via e.g. System.getProperty(...)
public void setSystemProperties(boolean p)
Set env vars into System properties. Enables fetch them via e.g. System.getProperty(...)