Skip to content

Commit

Permalink
Native compilation config for lsp4j and log4j warning camel-tooling#241
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Pupier <apupier@redhat.com>
  • Loading branch information
apupier committed Aug 2, 2019
1 parent afed3e0 commit 45b6903
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@
<configuration>
<imageName>CamelLanguageServer</imageName>
<mainClass>com.github.cameltooling.lsp.internal.Runner</mainClass>
<buildArgs>-H:+ReportExceptionStackTraces -H:+MachODebugInfoTesting -H:+PrintAOTCompilation -H:+PrintUniverse -H:+PrintHeapHistogram -H:+PrintFeatures -H:TempDirectory=C:\test-native</buildArgs>
<!-- <buildArgs>-H:+ReportExceptionStackTraces -H:TempDirectory=C:\test-native</buildArgs> -->
<!-- <buildArgs>-H:+ReportExceptionStackTraces -H:+MachODebugInfoTesting -H:+PrintAOTCompilation -H:+PrintUniverse -H:+PrintHeapHistogram -H:+PrintFeatures -H:TempDirectory=C:\test-native</buildArgs> -->
</configuration>
</execution>
</executions>
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/META-INF/native-image/proxy-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
["org.eclipse.lsp4j.services.LanguageServer"]
]
9 changes: 9 additions & 0 deletions src/main/resources/META-INF/native-image/reflect-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"name": "org.slf4j.impl.StaticLoggerBinder",
"allDeclaredFields": true,
"allPublicFields": true,
"allDeclaredMethods": true,
"allPublicMethods": true
}
]
8 changes: 8 additions & 0 deletions src/main/resources/META-INF/native-image/resource-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"resources":[
{"pattern":"META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat"},
{"pattern":"META-INF/services/org.apache.logging.log4j.spi.Provider"},
{"pattern":"META-INF/services/org.apache.logging.log4j.util.PropertySource"},
{"pattern":"org/slf4j/impl/StaticLoggerBinder.class"}
]
}

0 comments on commit 45b6903

Please sign in to comment.