Closed
Description
When using the tracing agent configured with paths like config-merge-dir=target/classes/META-INF/native-image
or config-output-dir=target/classes/META-INF/native-image
, the agent fails if the directory does not exists. As a consequence, it forces our users to configure that kind of Maven entry which is not very practical:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>make-native-image-config-folder</id>
<phase>test-compile</phase>
<configuration>
<target>
<mkdir dir="target/classes/META-INF/native-image"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
Could you please update the tracing agent to create the configuration output directory if it does not exists?
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
gradinac commentedon Mar 2, 2021
Hey @sdeleuze!
The fix for this has been merged to master: d704ad5
The agent will now create the missing parent directories on top of creating the config directory. The extra maven task should no longer be needed :)