Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ctoabidmaqbool1 opened this issue Aug 20, 2024 · 1 comment
Open

Comments

@ctoabidmaqbool1
Copy link

ctoabidmaqbool1 commented Aug 20, 2024

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
Copy link
Author

Maybe there is an issue in Gradle: gradle/gradle#2128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant