title: Gradle application plugin: Modify workingDir property
body: <p>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.</p>
  
  <p>A <a href="https://docs.gradle.org/current/dsl/org.gradle.api.tasks.JavaExec.html" rel="nofollow noreferrer"><code>JavaExec</code></a> task has a property called <a href="https://docs.gradle.org/current/dsl/org.gradle.api.tasks.JavaExec.html#org.gradle.api.tasks.JavaExec:workingDir" rel="nofollow noreferrer"><code>JavaExec#workingDir</code></a>, which would be this exact property I wanted to modify to something different of my choice.</p>
  
  <p>My question is: How do I modify the <code>gradle run</code> task in order to access this property?</p>