Karan Agarwal
Karan Agarwal

Reputation: 1

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

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 ?

Upvotes: -1

Views: 105

Answers (1)

aled
aled

Reputation: 25812

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.

Upvotes: 0

Related Questions