native-build-tools icon indicating copy to clipboard operation
native-build-tools copied to clipboard

Unable to configure `configurationFileDirectories` for task `nativeCompile`

Open tglaeser opened this issue 11 months ago • 1 comments

Description Task nativeTestCompile works as described in the docs as it executes command native-image with entry build/native/agent-output/test added to the -H:ConfigurationFileDirectories parameter.

Now, if I gathered the metadata first by running ./gradlew -Pagent test, I would like to add entry build/native/agent-output/test to the -H:ConfigurationFileDirectories parameter of command native-image executed by task nativeCompile; how do I do that? Otherwise task nativeRun will not be successful giving the metadata is not included in the generated image. I see that task nativeCompile has property options.get().asCompileOptions().configurationFileDirectories which doesn't seem to be mutable at configuration time; what am I missing?

Additional context n/a

System Info (please complete the following information):

  • OS: Linux 5.15.146.1-microsoft-standard-WSL2 GNU/Linux
  • GraalVM Version: Java(TM) SE Runtime Environment Oracle GraalVM 21.0.2+13.1
  • Java Version: 21
  • Plugin version: native-gradle-plugin:0.10.1

tglaeser avatar Mar 21 '24 17:03 tglaeser