This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new 7443c4e Tentative Graal native image instructions 7443c4e is described below commit 7443c4ee8f502cc6388376d1407a1335544d0d35 Author: remm <r...@apache.org> AuthorDate: Sat May 4 15:19:36 2019 +0200 Tentative Graal native image instructions Will need RC17 at least. --- res/tomcat-maven/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/res/tomcat-maven/README.md b/res/tomcat-maven/README.md index 7e0ed7d..f195977 100644 --- a/res/tomcat-maven/README.md +++ b/res/tomcat-maven/README.md @@ -77,3 +77,18 @@ If using the Kubernetes cloud clustering membership provider, the pod needs to h ``` oc policy add-role-to-user view system:serviceaccount:$(oc project -q):default -n $(oc project -q) ``` + +## Native Image + +``` +export JAVA_HOME=/home/remm/Work/graalvm-ce-1.0.0-rc17 +export JAVA_OPTS=-agentlib:native-image-agent=config-output-dir=./target/ +java -jar ./target/tomcat-maven-1.0.jar +``` +Then exercise necessary paths of your service with the Tomcat configuration. + +And generate the native image using the generated reflection metadata. +``` +cd target +$JAVA_HOME/bin/native-image -H:+ReportUnsupportedElementsAtRuntime -H:ConfigurationFileDirectories=./ -jar tomcat-maven-1.0.jar +``` --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org