gluonhq / gluonfx-gradle-plugin

Plugin that simplifies using Gluon Client for Java/JavaFX gradle projects
BSD 3-Clause "New" or "Revised" License
99 stars 20 forks source link

gradlew nativeRunAgent, how to propperly finish console apps? #197

Open ctoabidmaqbool1 opened 3 weeks ago

ctoabidmaqbool1 commented 3 weeks ago

Normaly, when agent is running, it create lock file e.g. resources/META-INF/native-image/.lock. It's deleted when Java programs exit/ finish completely.

gradlew nativeRunAgent

But in case of console app there is no way to exit program compley, E.g. When someone press CTRL + C, instead of exiting the Java program gradel demen / batch job exits and it auto terminates the java program.

In this case .lock file remains and no native-image configuration updated.

So how to solve this issue?

ctoabidmaqbool1 commented 3 weeks ago

Maybe there is an issue in Gradle: https://github.com/gradle/gradle/issues/2128