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.
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.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?