I simply want to modify the directory where the program is run. Normally, it's run from the project root, which annoys me a little bit, because testing the program out can be quite annoying, since my program generates files and folders where it is being run.
A JavaExec
task has a property called JavaExec#workingDir
, which would be this exact property I wanted to modify to something different of my choice.
My question is: How do I modify the gradle run
task in order to access this property?
tasks.run.get().workingDir = runningDir
– Bhatt