Gradle's built in task JavaExec always runs the Java mainClass in fork (i.e. a new Jvm process)?

59 views Asked by At

Is the Title correct ?

If i do JPS i can see the Java App as seperate process

And If I am correct then is there no config in JavaExec to run the Application inside the same Gradle Daemon process where gradle is running ?

1

There are 1 answers

3
aled On

The documentation for the JavaExec task says:

Executes a Java application in a child process.

There is no option that suggests anything else than a new process will be created.

It is all there in the documentation.