In several Tasks, I reference jars in my home folder.
Is there a better way to get Environment Variables than
ENV = System.getenv()
HOME = ENV['HOME']
task copyToServer(dependsOn: 'jar', type: Copy) {
from 'build/libs/'
into HOME + "/something/plugins/"
}
This sets $HOME
but I was hoping that I missed some magic from the documentation.
$ export FOO=bar
. – Aldreddef HOME
: Gradle 4.4.1Project
does not have aHOME
property or anENV
property. Could be something which dropped out ... ? – Selfrighteous