The application plugin's run task should not change the working directory #6074
Gradle 4.9 added support for passing arguments to JavaExec tasks. By default, JavaExec tasks change the working directory to the project directory. However, this default behavior is confusing when using the application plugin's
Assume a multi-project and a directory structure like
When running an application like
I would expect the application to look for
The application looks for
Now that arguments can be passed to JavaExec tasks, it's convenient to use that feature as a drop-in replacement for calling the start scripts that can be generated by the application plugin. However, currently relative file paths need to be adjusted to take the implicit change of the working directory into account.
Steps to Reproduce (for bugs)
I wouldn't necessarily consider this to be a bug, but rather an ask for a change in behavior to increase convenience.