Skip to content

Update the tracing agent to create automatically the configuration output directory #3250

Closed
@sdeleuze

Description

@sdeleuze
Collaborator

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?

Activity

self-assigned this
on Mar 2, 2021
gradinac

gradinac commented on Mar 2, 2021

@gradinac
Contributor

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 :)

added this to the 21.1 milestone on Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @sdeleuze@alina-yur@peter-hofer@gradinac

      Issue actions

        Update the tracing agent to create automatically the configuration output directory · Issue #3250 · oracle/graal