Skip to content

Commit

Permalink
Merge pull request #5060 from ballerina-platform/graalvm
Browse files Browse the repository at this point in the history
Update native directory path
  • Loading branch information
TharmiganK authored Nov 2, 2023
2 parents 9dd300d + e268195 commit 1d730a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/graalvm-compatibility-in-ballerina-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ This is not straightforward since Ballerina tests are not executed by a single U

If the library requires any additional configurations that are generated by the tracing agent, then review the configurations and filter the required ones. The filtered configurations should be packed with the module to make it GraalVM compatible.

1. If you have a `native` directory that holds the Java native code, then you can pack this configuration files in the `resources/META_INF/native-image/<group-id>/<artifact-id>/` directory.
1. If you have a `native` directory that holds the Java native code, then you can pack this configuration files in the `src/main/resources/META-INF/native-image/<group-id>/<artifact-id>/` directory.

2. If you do not have a `native` directory, then you should create one and add the configuration files in the `resources/META_INF/native-image/<group-id>/<artifact-id>/` directory, build and add the native jar to the library by specifying the dependency in the `Ballerina.toml`.
2. If you do not have a `native` directory, then you should create one and add the configuration files in the `src/main/resources/META-INF/native-image/<group-id>/<artifact-id>/` directory, build and add the native jar to the library by specifying the dependency in the `Ballerina.toml`.

### Mark the library as GraalVM compatible

Expand Down

0 comments on commit 1d730a8

Please sign in to comment.