I’m building a Java application which is built and started using Gradle. How can I read in my application wide and device specific environment variables and pass them to the Java application?
I.e. I know the environment variables are stored locally on the device in the docker.env file, but how can I extract these and then pass them to the run.sh script?
Thanks in advance!
EDIT SOLVED: Never mind, by using System.getenv(), it pulls in all of the environment variables for you to use in the application.